Skip to content

Commit

Permalink
Add itertools.repeat.__length_hint__ method (#7212)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Feb 14, 2022
1 parent 11efe03 commit a8141e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/itertools.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a8141e1

Please sign in to comment.