FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add missing `itertools.repeat.__length_hint__` method by AlexWaygood · Pull Request #7212 · python/typeshed · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pyi  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Add missing itertools.repeat.__length_hint__ method
  • Loading branch information
AlexWaygood authored Feb 14, 2022
commit 2a7ae074d2845f90aef8a93c97670232bda4a726
1 change: 1 addition & 0 deletions stdlib/itertools.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL