Files
typeshed/stdlib/multiprocessing/process.pyi
Rebecca Chen d74a5a9ef8 Add undocumented attribute multiprocessing.process.BaseProcess._identity (#6041)
A user filed an issue against pytype about this attribute being missing:
https://github.com/google/pytype/issues/1010. I determined its type from
the source code:
https://github.com/python/cpython/blob/3.9/Lib/multiprocessing/process.py.
2021-09-17 13:14:07 -07:00

41 lines
1.1 KiB
Python

import sys
from typing import Any, Callable, Mapping, Tuple
class BaseProcess:
name: str
daemon: bool
authkey: bytes
_identity: Tuple[int, ...] # undocumented
def __init__(
self,
group: None = ...,
target: Callable[..., Any] | None = ...,
name: str | None = ...,
args: Tuple[Any, ...] = ...,
kwargs: Mapping[str, Any] = ...,
*,
daemon: bool | None = ...,
) -> None: ...
def run(self) -> None: ...
def start(self) -> None: ...
def terminate(self) -> None: ...
if sys.version_info >= (3, 7):
def kill(self) -> None: ...
def close(self) -> None: ...
def join(self, timeout: float | None = ...) -> None: ...
def is_alive(self) -> bool: ...
@property
def exitcode(self) -> int | None: ...
@property
def ident(self) -> int | None: ...
@property
def pid(self) -> int | None: ...
@property
def sentinel(self) -> int: ...
def current_process() -> BaseProcess: ...
def active_children() -> list[BaseProcess]: ...
if sys.version_info >= (3, 8):
def parent_process() -> BaseProcess | None: ...