2 from asyncio import transports
5 def connection_made(self, transport: transports.BaseTransport) -> None: ...
6 def connection_lost(self, exc: Exception | None) -> None: ...
7 def pause_writing(self) -> None: ...
8 def resume_writing(self) -> None: ...
10 class Protocol(BaseProtocol):
11 def data_received(self, data: bytes) -> None: ...
12 def eof_received(self) -> bool | None: ...
14 if sys.version_info >= (3, 7):
15 class BufferedProtocol(BaseProtocol):
16 def get_buffer(self, sizehint: int) -> bytearray: ...
17 def buffer_updated(self, nbytes: int) -> None: ...
19 class DatagramProtocol(BaseProtocol):
20 def connection_made(self, transport: transports.DatagramTransport) -> None: ... # type: ignore[override]
21 def datagram_received(self, data: bytes, addr: tuple[str, int]) -> None: ...
22 def error_received(self, exc: Exception) -> None: ...
24 class SubprocessProtocol(BaseProtocol):
25 def pipe_data_received(self, fd: int, data: bytes) -> None: ...
26 def pipe_connection_lost(self, fd: int, exc: Exception | None) -> None: ...
27 def process_exited(self) -> None: ...