From a51b48060940f2d0a370878ba02ffffff1225436 Mon Sep 17 00:00:00 2001 From: John Reese Date: Tue, 10 Apr 2018 20:54:23 -0700 Subject: [PATCH] Add type annotations for multiprocessing manager address/connect (#2033) --- stdlib/3/multiprocessing/managers.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/3/multiprocessing/managers.pyi b/stdlib/3/multiprocessing/managers.pyi index 74634e3aa..656ee8d2c 100644 --- a/stdlib/3/multiprocessing/managers.pyi +++ b/stdlib/3/multiprocessing/managers.pyi @@ -6,7 +6,7 @@ import queue import threading from typing import ( Any, Callable, ContextManager, Dict, Iterable, List, Mapping, Optional, - Sequence, TypeVar, + Sequence, Tuple, TypeVar, Union, ) _T = TypeVar('_T') @@ -18,6 +18,8 @@ class Namespace: ... _Namespace = Namespace class BaseManager(ContextManager[BaseManager]): + address: Union[str, Tuple[str, int]] + def connect(self) -> None: ... def register(self, typeid: str, callable: Any = ...) -> None: ... def shutdown(self) -> None: ... def start(self, initializer: Optional[Callable[..., Any]] = ...,