stdlib: Improve a bunch of __(a)exit__ methods (#7571)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-04-01 08:05:25 +02:00
1 parent 85f060b26d
commit da3e69d093
20 files changed
+47 -28

No files matched your search

+1 -1
View File
@@ -31,6 +31,6 @@ class Profile:
def runcall(self, __func: Callable[_P, _T], *args: _P.args, **kw: _P.kwargs) -> _T: ...
if sys.version_info >= (3, 8):
def __enter__(self: Self) -> Self: ...
def __exit__(self, *exc_info: Any) -> None: ...
def __exit__(self, *exc_info: object) -> None: ...
def label(code: str | CodeType) -> _Label: ... # undocumented