Add BufferedProtocol.eof_received() (#7043)

This commit is contained in:
Andrew Svetlov
2022-01-27 13:09:29 +02:00
committed by GitHub
parent d5101dced7
commit 56aa2088aa
5 changed files with 1 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ if sys.version_info >= (3, 7):
class BufferedProtocol(BaseProtocol):
def get_buffer(self, sizehint: int) -> bytearray: ...
def buffer_updated(self, nbytes: int) -> None: ...
def eof_received(self) -> bool | None: ...
class DatagramProtocol(BaseProtocol):
def connection_made(self, transport: transports.DatagramTransport) -> None: ... # type: ignore[override]