Skip to content

Conversation

@gudnimg
Copy link
Contributor

@gudnimg gudnimg commented Feb 7, 2026

A follow-up on #86 I later learned there exists a Python package which does this work automatically :) https://github.com/asottile/pyupgrade It catches a lot more stuff.

pyupgrade sometimes also fixes things unrelated to annotations/typing. So I added them in a separate commit so it can be reviewed on its own.

Automatically done using:
pyupgrade --py310-plus <python file paths>
Additional changes made by pypgrade which are not relevant for typing
Copy link
Collaborator

@JPHutchins JPHutchins left a comment

Choose a reason for hiding this comment

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

Fantastic! That tool will keep being useful as long as Python keeps improving the type system. I look forward to dropping 3.11 and "legacy" generic syntax.

@JPHutchins JPHutchins merged commit 362d721 into intercreate:main Feb 7, 2026
21 checks passed
@gudnimg gudnimg deleted the types-gudni branch February 7, 2026 22:40
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