add raw property to BufferedIOBase (#3483)

This commit is contained in:
cshesse
2019-12-03 23:20:07 -08:00
committed by Sebastian Rittau
parent 86775c803e
commit 9a32f0d26a

View File

@@ -53,6 +53,7 @@ class RawIOBase(IOBase):
def read(self, size: int = ...) -> Optional[bytes]: ...
class BufferedIOBase(IOBase):
raw: RawIOBase # This is not part of the BufferedIOBase API and may not exist on some implementations.
def detach(self) -> RawIOBase: ...
def readinto(self, b: _bytearray_like) -> int: ...
def write(self, b: Union[bytes, bytearray]) -> int: ...