Skip to content

Commit f17dbe8

Browse files
simplify strict description
1 parent 9b32076 commit f17dbe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asyncstdlib/itertools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ async def batched(
128128
"""
129129
Batch the ``iterable`` to tuples of the length ``n``.
130130
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``.
131+
This lazily exhausts ``iterable`` and returns each batch as soon as it is ready.
132+
If ``strict`` is :py:data:`True` and the last batch is smaller than ``n``,
133+
:py:exc:`ValueError` is raised.
134134
"""
135135
if n < 1:
136136
raise ValueError("n must be at least one")

0 commit comments

Comments
 (0)