massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / multiprocessing / dummy / connection.pyi
1 from typing import Any, List, Optional, Tuple, Type, TypeVar\r
2 \r
3 from queue import Queue\r
4 \r
5 families = ...  # type: List[None]\r
6 \r
7 _TConnection = TypeVar('_TConnection', bound=Connection)\r
8 _TListener = TypeVar('_TListener', bound=Listener)\r
9 \r
10 class Connection(object):\r
11     _in = ...  # type: Any\r
12     _out = ...  # type: Any\r
13     recv = ...  # type: Any\r
14     recv_bytes = ...  # type: Any\r
15     send = ...  # type: Any\r
16     send_bytes = ...  # type: Any\r
17     def __enter__(self: _TConnection) -> _TConnection: ...\r
18     def __exit__(self, exc_type, exc_value, exc_tb) -> None: ...\r
19     def __init__(self, _in, _out) -> None: ...\r
20     def close(self) -> None: ...\r
21     def poll(self, timeout: float=...) -> bool: ...\r
22 \r
23 class Listener(object):\r
24     _backlog_queue = ...  # type: Optional[Queue]\r
25     @property\r
26     def address(self) -> Optional[Queue]: ...\r
27     def __enter__(self: _TListener) -> _TListener: ...\r
28     def __exit__(self, exc_type, exc_value, exc_tb) -> None: ...\r
29     def __init__(self, address=..., family=..., backlog=...) -> None: ...\r
30     def accept(self) -> Connection: ...\r
31     def close(self) -> None: ...\r
32 \r
33 \r
34 def Client(address) -> Connection: ...\r
35 def Pipe(duplex: bool=...) -> Tuple[Connection, Connection]: ...\r