gh-102876: remove superfluous parens from itertools.batched recipe (GH-102877)

remove superfluous parens from itertools.batched recipe
This commit is contained in:
wim glenn 2023-03-21 12:06:18 -05:00 committed by GitHub
parent 3bb475662b
commit 4bb1dd3c5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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(