massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3.4 / asyncio / protocols.pyi
1 from asyncio import transports\r
2 from typing import List, Text, Tuple, Union\r
3 \r
4 __all__: List[str]\r
5 \r
6 \r
7 class BaseProtocol:\r
8     def connection_made(self, transport: transports.BaseTransport) -> None: ...\r
9     def connection_lost(self, exc: Exception) -> None: ...\r
10     def pause_writing(self) -> None: ...\r
11     def resume_writing(self) -> None: ...\r
12 \r
13 class Protocol(BaseProtocol):\r
14     def data_received(self, data: bytes) -> None: ...\r
15     def eof_received(self) -> bool: ...\r
16 \r
17 class DatagramProtocol(BaseProtocol):\r
18     def datagram_received(self, data: Union[bytes, Text], addr: Tuple[str, int]) -> None: ...\r
19     def error_received(self, exc: Exception) -> None: ...\r
20 \r
21 class SubprocessProtocol(BaseProtocol):\r
22     def pipe_data_received(self, fd: int, data: Union[bytes, Text]) -> None: ...\r
23     def pipe_connection_lost(self, fd: int, exc: Exception) -> None: ...\r
24     def process_exited(self) -> None: ...\r