Skip to content

Commit

Permalink
Remove the "strict" conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger committed May 24, 2024
1 parent 574bdb6 commit 41fb282
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Doc/library/itertools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ loops that truncate the stream.
raise ValueError('n must be at least one')
iterable = iter(iterable)
while batch := tuple(islice(iterable, n)):
if strict and len(batch) != n:
raise ValueError('batched(): incomplete batch')
yield batch

.. versionadded:: 3.12
Expand Down

0 comments on commit 41fb282

Please sign in to comment.