Make BytesIO inherit from BufferedIOBase. (#4082)

Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Tarcisio
2020-05-28 17:07:00 -07:00
committed by GitHub
parent b2b397c5ce
commit b58b8f3b43
6 changed files with 15 additions and 40 deletions

View File

@@ -82,7 +82,7 @@ class GzipFile(_compression.BaseStream):
def writable(self) -> bool: ...
def seekable(self) -> bool: ...
def seek(self, offset: int, whence: int = ...) -> int: ...
def readline(self, size: int = ...) -> bytes: ...
def readline(self, size: Optional[int] = ...) -> bytes: ...
class _GzipReader(_compression.DecompressReader):
def __init__(self, fp: IO[bytes]) -> None: ...