mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Improve multiprocessing stubs (#8202)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
@@ -148,7 +148,7 @@ class BaseManager:
|
||||
|
||||
def get_server(self) -> Server: ...
|
||||
def connect(self) -> None: ...
|
||||
def start(self, initializer: Callable[..., Any] | None = ..., initargs: Iterable[Any] = ...) -> None: ...
|
||||
def start(self, initializer: Callable[..., object] | None = ..., initargs: Iterable[Any] = ...) -> None: ...
|
||||
def shutdown(self) -> None: ... # only available after start() was called
|
||||
def join(self, timeout: float | None = ...) -> None: ... # undocumented
|
||||
@property
|
||||
@@ -157,7 +157,7 @@ class BaseManager:
|
||||
def register(
|
||||
cls,
|
||||
typeid: str,
|
||||
callable: Callable[..., Any] | None = ...,
|
||||
callable: Callable[..., object] | None = ...,
|
||||
proxytype: Any = ...,
|
||||
exposed: Sequence[str] | None = ...,
|
||||
method_to_typeid: Mapping[str, str] | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user