Improve multiprocessing stubs (#8202)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
Alex Waygood
2022-07-01 19:20:39 +01:00
committed by GitHub
parent 7b54854c90
commit a2e8346d9a
8 changed files with 56 additions and 90 deletions

View File

@@ -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 = ...,