mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-14 18:58:24 +08:00
Backport many Self-related changes to the Python-2 stdlib (#7128)
This commit is contained in:
@@ -751,7 +751,7 @@ class frozenset(AbstractSet[_T_co], Generic[_T_co]):
|
||||
|
||||
class enumerate(Iterator[tuple[int, _T]], Generic[_T]):
|
||||
def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ...
|
||||
def __iter__(self) -> Iterator[tuple[int, _T]]: ...
|
||||
def __iter__(self: Self) -> Self: ...
|
||||
def next(self) -> tuple[int, _T]: ...
|
||||
|
||||
class xrange(Sized, Iterable[int], Reversible[int]):
|
||||
|
||||
Reference in New Issue
Block a user