@@ -90,7 +90,7 @@ class BytesIO(BinaryIO):
90
90
91
91
def __iter__ (self ) -> Iterator [bytes ]: ...
92
92
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 : ...
94
94
95
95
class StringIO (TextIO ):
96
96
def __init__ (self , initial_value : str = ...,
@@ -117,7 +117,7 @@ class StringIO(TextIO):
117
117
118
118
def __iter__ (self ) -> Iterator [str ]: ...
119
119
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 : ...
121
121
122
122
class TextIOWrapper (TextIO ):
123
123
# TODO: This is actually a base class of _io._TextIOBase.
@@ -147,4 +147,4 @@ class TextIOWrapper(TextIO):
147
147
148
148
def __iter__ (self ) -> Iterator [str ]: ...
149
149
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