mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-102876: remove superfluous parens from itertools.batched recipe (GH-102877)
remove superfluous parens from itertools.batched recipe
This commit is contained in:
parent
3bb475662b
commit
4bb1dd3c5c
2 changed files with 2 additions and 2 deletions
|
@ -1846,7 +1846,7 @@ class TestPurePythonRoughEquivalents(unittest.TestCase):
|
|||
if n < 1:
|
||||
raise ValueError('n must be at least one')
|
||||
it = iter(iterable)
|
||||
while (batch := tuple(islice(it, n))):
|
||||
while batch := tuple(islice(it, n)):
|
||||
yield batch
|
||||
|
||||
for iterable, n in product(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue