mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Change SyncManager behaviour when used as a context decorator (#3230)
Resolves #3018.
This commit is contained in:
committed by
Sebastian Rittau
parent
5ccf017ca0
commit
8d053f139f
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user