mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
stdlib: Improve a bunch of __(a)exit__ methods (#7571)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user