Set default for enumerate's start argument (#12796)

This commit is contained in:
Max Muoto
2024-10-12 23:01:00 -05:00
committed by GitHub
parent 352cfc9773
commit 5fcd375815

View File

@@ -1208,7 +1208,7 @@ class frozenset(AbstractSet[_T_co]):
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class enumerate(Iterator[tuple[int, _T]]):
def __new__(cls, iterable: Iterable[_T], start: int = ...) -> Self: ...
def __new__(cls, iterable: Iterable[_T], start: int = 0) -> Self: ...
def __iter__(self) -> Self: ...
def __next__(self) -> tuple[int, _T]: ...
if sys.version_info >= (3, 9):