Change SyncManager behaviour when used as a context decorator (#3230)

Resolves #3018.
This commit is contained in:
plokmijnuhby
2019-09-11 17:24:36 +01:00
committed by Sebastian Rittau
parent 5ccf017ca0
commit 8d053f139f

View File

@@ -37,7 +37,7 @@ class BaseManager(ContextManager[BaseManager]):
def start(self, initializer: Optional[Callable[..., Any]] = ...,
initargs: Iterable[Any] = ...) -> None: ...
class SyncManager(BaseManager):
class SyncManager(BaseManager, ContextManager[SyncManager]):
def BoundedSemaphore(self, value: Any = ...) -> threading.BoundedSemaphore: ...
def Condition(self, lock: Any = ...) -> threading.Condition: ...
def Event(self) -> threading.Event: ...