mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +08:00
stdlib: Improve a bunch of __(a)exit__ methods (#7571)
This commit is contained in:
1 parent
85f060b26d
commit
da3e69d093
20 files changed
+47
-28
No files matched your search
@@ -25,7 +25,7 @@ else:
|
||||
class _ContextManager:
|
||||
def __init__(self, lock: Lock | Semaphore) -> None: ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
def __exit__(self, *args: object) -> None: ...
|
||||
|
||||
class _ContextManagerMixin:
|
||||
# Apparently this exists to *prohibit* use as a context manager.
|
||||
|
||||
Reference in new issue
Block a user