mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Added missing Process fields; More accurate Optional parameters (#1483)
This commit is contained in:
@@ -72,19 +72,26 @@ class Pool():
|
||||
def __exit__(self, exc_type, exc_val, exc_tb) -> None: ...
|
||||
|
||||
class Process():
|
||||
name: str
|
||||
daemon: bool
|
||||
pid: Optional[int]
|
||||
exitcode: Optional[int]
|
||||
authkey: bytes
|
||||
sentinel: int
|
||||
# TODO: set type of group to None
|
||||
def __init__(self,
|
||||
group: Any = ...,
|
||||
target: Callable = ...,
|
||||
name: str = ...,
|
||||
target: Optional[Callable] = ...,
|
||||
name: Optional[str] = ...,
|
||||
args: Iterable[Any] = ...,
|
||||
kwargs: Mapping[Any, Any] = ...,
|
||||
daemon: bool = ...) -> None: ...
|
||||
*,
|
||||
daemon: Optional[bool] = ...) -> None: ...
|
||||
def start(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
def terminate(self) -> None: ...
|
||||
def is_alive(self) -> bool: ...
|
||||
def join(self, timeout: float = ...) -> None: ...
|
||||
def join(self, timeout: Optional[float] = ...) -> None: ...
|
||||
|
||||
class Queue():
|
||||
def __init__(self, maxsize: int = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user