mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
stdlib/2.7./codecs.pyi: added missing __enter__() and __exit__() (#167)
This commit is contained in:
committed by
Guido van Rossum
parent
ce59cd4056
commit
fde085bbdd
@@ -188,6 +188,10 @@ class StreamReader(Codec):
|
||||
class StreamReaderWriter:
|
||||
def __init__(self, stream: BinaryIO, Reader: _stream_reader_type, Writer: _stream_writer_type, errors: str = ...) -> None:
|
||||
...
|
||||
def __enter__(self) -> BinaryIO:
|
||||
...
|
||||
def __exit__(self, typ, exc, tb) -> bool:
|
||||
...
|
||||
|
||||
class StreamRecoder(BinaryIO):
|
||||
def __init__(self, stream: BinaryIO, encode: _encode_type, decode: _decode_type, Reader: _stream_reader_type, Writer: _stream_writer_type, errors: str = ...) -> None:
|
||||
|
||||
Reference in New Issue
Block a user