[3.12] Minor stylistic edit to the grouper recipe (gh-112759) (gh-113196)

This commit is contained in:
Miss Islington (bot) 2023-12-15 23:32:32 +01:00 committed by GitHub
parent 9c32d0267f
commit 85ee49c434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -916,9 +916,9 @@ which incur interpreter overhead.
args = [iter(iterable)] * n
if incomplete == 'fill':
return zip_longest(*args, fillvalue=fillvalue)
if incomplete == 'strict':
elif incomplete == 'strict':
return zip(*args, strict=True)
if incomplete == 'ignore':
elif incomplete == 'ignore':
return zip(*args)
else:
raise ValueError('Expected fill, strict, or ignore')