mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
threading.Lock issue when using it with ExitStack (#2908)
* Make threading primitives ContextManagers * Make catch_warnings ContextManager * Make SMTP ContextManager * Fix type of exc_type for SMTP
This commit is contained in:
committed by
Sebastian Rittau
parent
b87064a274
commit
bec2fef7fa
@@ -34,5 +34,5 @@ class catch_warnings:
|
||||
module: Optional[ModuleType] = ...) -> None: ...
|
||||
def __enter__(self) -> Optional[List[_Record]]: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]],
|
||||
exc_val: Optional[Exception],
|
||||
exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user