Files
typeshed/stdlib/multiprocessing/spawn.pyi
2022-02-20 14:08:07 -08:00

32 lines
832 B
Python

from types import ModuleType
from typing import Any, Mapping, Sequence
__all__ = [
"_main",
"freeze_support",
"set_executable",
"get_executable",
"get_preparation_data",
"get_command_line",
"import_main_path",
]
WINEXE: bool
WINSERVICE: bool
def set_executable(exe: str) -> None: ...
def get_executable() -> str: ...
def is_forking(argv: Sequence[str]) -> bool: ...
def freeze_support() -> None: ...
def get_command_line(**kwds: Any) -> list[str]: ...
def spawn_main(pipe_handle: int, parent_pid: int | None = ..., tracker_fd: int | None = ...) -> None: ...
# undocumented
def _main(fd: int) -> Any: ...
def get_preparation_data(name: str) -> dict[str, Any]: ...
old_main_modules: list[ModuleType]
def prepare(data: Mapping[str, Any]) -> None: ...
def import_main_path(main_path: str) -> None: ...