Minor stylistic edit to the grouper recipe (gh112759)

This commit is contained in:
Jurjen N. E. Bos 2023-12-05 19:44:06 +01:00 committed by GitHub
parent 11d88a178b
commit c2e2df8356
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')