From 92a697cabd32ea799ad3666546988affc8ef32a5 Mon Sep 17 00:00:00 2001 From: Stig Johan Berggren Date: Tue, 7 Aug 2018 19:02:21 +0200 Subject: [PATCH] Make BaseManager.register a classmethod (#2356) (#2357) --- stdlib/3/multiprocessing/managers.pyi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stdlib/3/multiprocessing/managers.pyi b/stdlib/3/multiprocessing/managers.pyi index 656ee8d2c..a5ec399d7 100644 --- a/stdlib/3/multiprocessing/managers.pyi +++ b/stdlib/3/multiprocessing/managers.pyi @@ -20,7 +20,12 @@ _Namespace = Namespace class BaseManager(ContextManager[BaseManager]): address: Union[str, Tuple[str, int]] def connect(self) -> None: ... - def register(self, typeid: str, callable: Any = ...) -> None: ... + @classmethod + def register(cls, typeid: str, callable: Optional[Callable] = ..., + proxytype: Any = ..., + exposed: Optional[Sequence[str]] = ..., + method_to_typeid: Optional[Mapping[str, str]] = ..., + create_method: bool = ...) -> None: ... def shutdown(self) -> None: ... def start(self, initializer: Optional[Callable[..., Any]] = ..., initargs: Iterable[Any] = ...) -> None: ...