Skip to content

Conversation

@Liam-DeVoe
Copy link
Contributor

reveal_type(next(batched([0, 1], n=2, strict=True))) is now tuple[int, int] rather than tuple[int, ...]. I went up to 5, which seems to match types for similar classes in itertools.

I suppose this is technically a breaking change for anyone who currently annotates as x: batched[int]? (which is now x: batched[tuple[int, ...]]). Not sure if this is a big deal.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@srittau srittau merged commit e887eae into python:main Jan 14, 2026
63 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