Skip to content

Add from __future__ import annotations everywhere. #13391

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

Merged
merged 3 commits into from
Aug 12, 2022

Conversation

jhance
Copy link
Collaborator

@jhance jhance commented Aug 11, 2022

This will be nice for if anyone wants to use slicker new syntax for mypy internals without worrying about if the file already has it or not.

@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

@JukkaL
Copy link
Collaborator

JukkaL commented Aug 12, 2022

This is a good idea. I don't have a strong opinion on whether we should switch to new type syntax (list[int] and | for unions), but at least getting rid of string literal escapes will be a good thing.

@JukkaL JukkaL merged commit b1364c5 into python:master Aug 12, 2022
ilevkivskyi pushed a commit that referenced this pull request Aug 13, 2022
With #13391 (adding `from __future__ import annotations` everywhere), it's now possible to remove the quotes from annotations. Change generated with `pyupgrade` and excluding unrelated changes.
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.

3 participants