mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
Make multiprocessing pipes generic (#11137)
This commit is contained in:
@@ -35,8 +35,8 @@ if sys.platform == "win32":
|
||||
handle: int, target_process: int | None = None, inheritable: bool = False, *, source_process: int | None = None
|
||||
) -> int: ...
|
||||
def steal_handle(source_pid: int, handle: int) -> int: ...
|
||||
def send_handle(conn: connection.PipeConnection, handle: int, destination_pid: int) -> None: ...
|
||||
def recv_handle(conn: connection.PipeConnection) -> int: ...
|
||||
def send_handle(conn: connection.PipeConnection[DupHandle, Any], handle: int, destination_pid: int) -> None: ...
|
||||
def recv_handle(conn: connection.PipeConnection[Any, DupHandle]) -> int: ...
|
||||
|
||||
class DupHandle:
|
||||
def __init__(self, handle: int, access: int, pid: int | None = None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user