Added missing Process fields; More accurate Optional parameters (#1483)

This commit is contained in:
eujing
2017-07-19 10:17:23 +08:00
committed by Jelle Zijlstra
parent a5d044361b
commit be31439168

View File

@@ -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: ...