add missing multiprocessing.connection.Connection context manager methods (#3875)

Co-authored-by: Ben Motz <ben.motz@bluwireless.com>
This commit is contained in:
Ben Motz
2020-03-22 15:50:50 +00:00
committed by GitHub
parent 6d3af1c472
commit c12162e4a1

View File

@@ -24,6 +24,8 @@ class _ConnectionBase:
def recv_bytes_into(self, buf: Any, offset: int = ...) -> int: ...
def recv(self) -> Any: ...
def poll(self, timeout: Optional[float] = ...) -> bool: ...
def __enter__(self) -> _ConnectionBase: ...
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], exc_tb: Optional[types.TracebackType]) -> None: ...
class Connection(_ConnectionBase): ...