From 8d053f139ffbc648a38fed1252be30bc86383f4f Mon Sep 17 00:00:00 2001 From: plokmijnuhby <39633434+plokmijnuhby@users.noreply.github.com> Date: Wed, 11 Sep 2019 17:24:36 +0100 Subject: [PATCH] Change SyncManager behaviour when used as a context decorator (#3230) Resolves #3018. --- stdlib/3/multiprocessing/managers.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/multiprocessing/managers.pyi b/stdlib/3/multiprocessing/managers.pyi index ceabefbd8..7c19b1d20 100644 --- a/stdlib/3/multiprocessing/managers.pyi +++ b/stdlib/3/multiprocessing/managers.pyi @@ -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: ...