mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
add missing multiprocessing.connection.Connection context manager methods (#3875)
Co-authored-by: Ben Motz <ben.motz@bluwireless.com>
This commit is contained in:
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user