Add itertools.repeat.__length_hint__ method (#7212)

This commit is contained in:
Alex Waygood
2022-02-14 22:13:13 +00:00
committed by GitHub
parent 11efe034bb
commit a8141e14ae

View File

@@ -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):