Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typing rewrites for typing_extensions 4.6.0+ #341

Merged
merged 1 commit into from Jun 18, 2023

Conversation

AlexWaygood
Copy link
Contributor

As discussed in asottile/pyupgrade#842.

typing_extensions 4.6.0 backported many bugfixes and enhancements from newer Python versions:

  • Several bugfixes for Literal that were fixed in 3.10 but no earlier
  • Pickleable newtypes from 3.10
  • NamedTuples and TypedDicts with correct __orig_bases__ attributes from 3.12
  • Much more performant runtime-checkable protocols from 3.12
  • A better repr for Unpack, from 3.12
  • A new parameter for dataclass_transform, from 3.12

reorder_python_imports.py Outdated Show resolved Hide resolved
Copy link
Owner

@asottile asottile left a comment

Choose a reason for hiding this comment

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

@asottile asottile merged commit 72581f2 into asottile:main Jun 18, 2023
3 checks passed
@AlexWaygood AlexWaygood deleted the ext-460 branch June 18, 2023 20:34
@AlexWaygood
Copy link
Contributor Author

Thanks!

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.

None yet

2 participants