Skip to content

Fix the return type of more_itertools.batched#993

Merged
bbayles merged 1 commit intomore-itertools:masterfrom
qobilidop:batched
May 16, 2025
Merged

Fix the return type of more_itertools.batched#993
bbayles merged 1 commit intomore-itertools:masterfrom
qobilidop:batched

Conversation

@qobilidop
Copy link
Copy Markdown
Contributor

Issue reference

This is a trivial bug.

Changes

Fixes the return type of more_itertools.batched. The tuple there should be a tuple of potentially multiple items, rather than a tuple of a single item.

Checks and tests

make all-checks passes.

It should be a tuple of potentially multiple items, rather than a tuple of a single item.
@bbayles
Copy link
Copy Markdown
Collaborator

bbayles commented May 16, 2025

For reference, here's the annotation for the standard library's version: https://github.com/python/typeshed/blob/0125fe28489590dd341576147b54dc164e1b016a/stdlib/itertools.pyi#L326

@bbayles bbayles merged commit 8756668 into more-itertools:master May 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants