Add multiprocessing.popen_spawn_win32 submodule (#8428)

This commit is contained in:
Kevin Kirsche
2022-07-29 11:02:15 -04:00
committed by GitHub
parent 17e3cf99a4
commit f550c24886
4 changed files with 40 additions and 2 deletions

View File

@@ -27,9 +27,11 @@ def dump(obj, file, protocol: Any | None = ...) -> None: ...
if sys.platform == "win32":
if sys.version_info >= (3, 8):
def duplicate(handle, target_process: Any | None = ..., inheritable: bool = ..., *, source_process: Any | None = ...): ...
def duplicate(
handle: int, target_process: int | None = ..., inheritable: bool = ..., *, source_process: int | None = ...
) -> int: ...
else:
def duplicate(handle, target_process: Any | None = ..., inheritable: bool = ...): ...
def duplicate(handle: int, target_process: int | None = ..., inheritable: bool = ...) -> int: ...
def steal_handle(source_pid, handle): ...
def send_handle(conn, handle, destination_pid) -> None: ...