From a8141e14ae15b34e93cd76a11b3fdd59c2e77f61 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 14 Feb 2022 22:13:13 +0000 Subject: [PATCH] Add `itertools.repeat.__length_hint__` method (#7212) --- stdlib/itertools.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/itertools.pyi b/stdlib/itertools.pyi index fc366731f..357657122 100644 --- a/stdlib/itertools.pyi +++ b/stdlib/itertools.pyi @@ -49,6 +49,7 @@ class repeat(Iterator[_T], Generic[_T]): def __init__(self, object: _T, times: int) -> None: ... def __next__(self) -> _T: ... def __iter__(self: Self) -> Self: ... + def __length_hint__(self) -> int: ... class accumulate(Iterator[_T], Generic[_T]): if sys.version_info >= (3, 8):