mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add RemoteError and current_process to multiprocessing (#445)
This commit is contained in:
committed by
Matthias Kramm
parent
382cb5fe20
commit
141318c056
@@ -2,6 +2,8 @@
|
||||
|
||||
from typing import Any, Callable, Iterable, Mapping
|
||||
|
||||
from multiprocessing.process import current_process as current_process
|
||||
|
||||
class Lock():
|
||||
def acquire(self, block: bool = ..., timeout: int = ...) -> None: ...
|
||||
def release(self) -> None: ...
|
||||
|
||||
@@ -6,3 +6,5 @@ from typing import Any
|
||||
|
||||
class BaseManager():
|
||||
def register(typeid: str, callable: Any = ...) -> None: ...
|
||||
|
||||
class RemoteError(Exception): ...
|
||||
|
||||
2
stdlib/3/multiprocessing/process.pyi
Normal file
2
stdlib/3/multiprocessing/process.pyi
Normal file
@@ -0,0 +1,2 @@
|
||||
def current_process(): ...
|
||||
def active_children(): ...
|
||||
Reference in New Issue
Block a user