mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-27 22:31:12 +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
@@ -72,7 +72,8 @@ class SMTP:
|
||||
local_hostname: Optional[str] = ..., timeout: float = ...,
|
||||
source_address: Optional[_SourceAddress] = ...) -> None: ...
|
||||
def __enter__(self) -> SMTP: ...
|
||||
def __exit__(self, exc_type: Optional[Type[Exception]], exc_value: Optional[Exception],
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]],
|
||||
exc_value: Optional[BaseException],
|
||||
tb: Optional[TracebackType]) -> None: ...
|
||||
def set_debuglevel(self, debuglevel: int) -> None: ...
|
||||
sock: Optional[socket]
|
||||
|
||||
Reference in New Issue
Block a user