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

Add missing `strict` argument for `itertools.batched` (3.13) by max-muoto · Pull Request #12256 · python/typeshed · GitHub

Repository navigation

6 changes: 5 additions & 1 deletion 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 @@ -326,6 +326,10 @@ if sys.version_info >= (3, 10):

if sys.version_info >= (3, 12):
class batched(Iterator[tuple[_T_co, ...]], Generic[_T_co]):
def __new__(cls, iterable: Iterable[_T_co], n: int) -> Self: ...
if sys.version_info >= (3, 13):
def __new__(cls, iterable: Iterable[_T_co], n: int, *, strict: bool = False) -> Self: ...
else:
def __new__(cls, iterable: Iterable[_T_co], n: int) -> Self: ...

def __iter__(self) -> Self: ...
def __next__(self) -> tuple[_T_co, ...]: ...

Back | FazBrowse Home | New Git URL