Audit stdlib object annotations (#9519)

This commit is contained in:
Avasam
2023-01-17 10:40:00 -05:00
committed by GitHub
parent 3d6b8dccfe
commit c70d303985
31 changed files with 79 additions and 79 deletions

View File

@@ -1,5 +1,5 @@
import sys
from _typeshed import Self, StrOrBytesPath
from _typeshed import Self, StrOrBytesPath, Unused
from collections.abc import Callable
from types import CodeType
from typing import Any, TypeVar
@@ -32,6 +32,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: object) -> None: ...
def __exit__(self, *exc_info: Unused) -> None: ...
def label(code: str | CodeType) -> _Label: ... # undocumented