mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-21 04:57:03 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
1 parent
f8501d33c7
commit
a40d79a4e6
172 files changed
+728
-761
No files matched your search
@@ -9,7 +9,6 @@ from typing import (
|
||||
SupportsComplex,
|
||||
SupportsFloat,
|
||||
SupportsInt,
|
||||
Type,
|
||||
TypeVar,
|
||||
Union,
|
||||
overload,
|
||||
@@ -68,7 +67,7 @@ class chain(Iterator[_T], Generic[_T]):
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
@classmethod
|
||||
# We use Type and not Type[_S] to not lose the type inference from __iterable
|
||||
def from_iterable(cls: Type[Any], __iterable: Iterable[Iterable[_S]]) -> Iterator[_S]: ...
|
||||
def from_iterable(cls: type[Any], __iterable: Iterable[Iterable[_S]]) -> Iterator[_S]: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user