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 syntax after dropping Python 3.6 support #881

Closed
bhrutledge opened this issue Mar 12, 2022 · 0 comments · Fixed by #882
Closed

Update syntax after dropping Python 3.6 support #881

bhrutledge opened this issue Mar 12, 2022 · 0 comments · Fixed by #882
Assignees
Milestone

Comments

@bhrutledge
Copy link
Contributor

Following up on #869.

e.g., via:

fd -e py | xargs pyupgrade --py37-plus

Also, Twine can now take advantage of from __future__ import annotations, which means it can now use recent syntax like subscriptable generics and simpler union types. pyupgrade should handle most of that, as long as the __future__ import is present, which can be added with isort.

It might also be worth using typing_extensions to take advantage of newer typing PEPs.

@bhrutledge bhrutledge self-assigned this Mar 12, 2022
@bhrutledge bhrutledge added this to the 4.0.0 milestone Mar 12, 2022
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 a pull request may close this issue.

1 participant