From 5fcd375815ca322db5d570d17e5c27300bf801e3 Mon Sep 17 00:00:00 2001 From: Max Muoto Date: Sat, 12 Oct 2024 23:01:00 -0500 Subject: [PATCH] Set default for `enumerate`'s `start` argument (#12796) --- stdlib/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 7574cdbe5..63c53a5f6 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -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):