A new shade of Black (#11362)

This commit is contained in:
Alex Waygood
2024-02-05 00:38:55 +00:00
committed by GitHub
parent 7a6a749449
commit c49c84f319
76 changed files with 190 additions and 106 deletions

View File

@@ -273,6 +273,7 @@ if sys.version_info >= (3, 10):
def __or__(self, right: Any) -> _SpecialForm: ...
def __ror__(self, left: Any) -> _SpecialForm: ...
Concatenate: _SpecialForm
TypeAlias: _SpecialForm
TypeGuard: _SpecialForm
@@ -864,6 +865,7 @@ class NamedTuple(tuple[Any, ...]):
# So we only add it to the stub on 3.12+.
if sys.version_info >= (3, 12):
__orig_bases__: ClassVar[tuple[Any, ...]]
@overload
def __init__(self, __typename: str, __fields: Iterable[tuple[str, Any]]) -> None: ...
@overload
@@ -885,6 +887,7 @@ class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
# so we only add it to the stub on 3.12+
if sys.version_info >= (3, 12):
__orig_bases__: ClassVar[tuple[Any, ...]]
def copy(self) -> typing_extensions.Self: ...
# Using Never so that only calls using mypy plugin hook that specialize the signature
# can go through.