asyncio.protocols: BufferedProtocol inherits from BaseProtocol (#3989)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-13 19:08:47 -07:00
committed by GitHub
parent 6932ff26c5
commit cc0ffb1648

View File

@@ -11,7 +11,7 @@ class Protocol(BaseProtocol):
def data_received(self, data: bytes) -> None: ...
def eof_received(self) -> Optional[bool]: ...
class BufferedProtocol(Protocol):
class BufferedProtocol(BaseProtocol):
def get_buffer(self, sizehint: int) -> bytearray: ...
def buffer_updated(self, nbytes: int) -> None: ...