Skip to content

Commit 44d2780

Browse files
committed
Fix tests
1 parent 9f4a8d3 commit 44d2780

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/3/io.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BytesIO(BinaryIO):
9090

9191
def __iter__(self) -> Iterator[bytes]: ...
9292
def __enter__(self) -> 'BytesIO': ...
93-
def __exit__(self, type, value, traceback) -> bool: ...
93+
def __exit__(self, t: type = None, value: BaseException = None, traceback: Any = None) -> bool: ...
9494

9595
class StringIO(TextIO):
9696
def __init__(self, initial_value: str = ...,
@@ -117,7 +117,7 @@ class StringIO(TextIO):
117117

118118
def __iter__(self) -> Iterator[str]: ...
119119
def __enter__(self) -> 'StringIO': ...
120-
def __exit__(self, type, value, traceback) -> bool: ...
120+
def __exit__(self, t: type = None, value: BaseException = None, traceback: Any = None) -> bool: ...
121121

122122
class TextIOWrapper(TextIO):
123123
# TODO: This is actually a base class of _io._TextIOBase.
@@ -147,4 +147,4 @@ class TextIOWrapper(TextIO):
147147

148148
def __iter__(self) -> Iterator[str]: ...
149149
def __enter__(self) -> StringIO: ...
150-
def __exit__(self, type, value, traceback) -> bool: ...
150+
def __exit__(self, t: type = None, value: BaseException = None, traceback: Any = None) -> bool: ...

0 commit comments

Comments
 (0)