massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / multiprocessing / process.pyi
1 import sys
2 from typing import Any, Callable, Mapping, Tuple
3
4 class BaseProcess:
5     name: str
6     daemon: bool
7     authkey: bytes
8     _identity: Tuple[int, ...]  # undocumented
9     def __init__(
10         self,
11         group: None = ...,
12         target: Callable[..., Any] | None = ...,
13         name: str | None = ...,
14         args: Tuple[Any, ...] = ...,
15         kwargs: Mapping[str, Any] = ...,
16         *,
17         daemon: bool | None = ...,
18     ) -> None: ...
19     def run(self) -> None: ...
20     def start(self) -> None: ...
21     def terminate(self) -> None: ...
22     if sys.version_info >= (3, 7):
23         def kill(self) -> None: ...
24         def close(self) -> None: ...
25     def join(self, timeout: float | None = ...) -> None: ...
26     def is_alive(self) -> bool: ...
27     @property
28     def exitcode(self) -> int | None: ...
29     @property
30     def ident(self) -> int | None: ...
31     @property
32     def pid(self) -> int | None: ...
33     @property
34     def sentinel(self) -> int: ...
35
36 def current_process() -> BaseProcess: ...
37 def active_children() -> list[BaseProcess]: ...
38
39 if sys.version_info >= (3, 8):
40     def parent_process() -> BaseProcess | None: ...