We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b32076 commit f17dbe8Copy full SHA for f17dbe8
asyncstdlib/itertools.py
@@ -128,9 +128,9 @@ async def batched(
128
"""
129
Batch the ``iterable`` to tuples of the length ``n``.
130
131
- This lazily exhausts ``iterable`` and returns each batch as soon as it's ready.
132
- If ``strict`` is :py:data:`True` then each batch is checked for correct size:
133
- :py:exc:`ValueError` is raised if the last batch is smaller than ``n``.
+ This lazily exhausts ``iterable`` and returns each batch as soon as it is ready.
+ If ``strict`` is :py:data:`True` and the last batch is smaller than ``n``,
+ :py:exc:`ValueError` is raised.
134
135
if n < 1:
136
raise ValueError("n must be at least one")
0 commit comments