Skip to content

Commit a8141e1

Browse files
authored
Add itertools.repeat.__length_hint__ method (#7212)
1 parent 11efe03 commit a8141e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/itertools.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class repeat(Iterator[_T], Generic[_T]):
4949
def __init__(self, object: _T, times: int) -> None: ...
5050
def __next__(self) -> _T: ...
5151
def __iter__(self: Self) -> Self: ...
52+
def __length_hint__(self) -> int: ...
5253

5354
class accumulate(Iterator[_T], Generic[_T]):
5455
if sys.version_info >= (3, 8):

0 commit comments

Comments
 (0)