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

Remove mention of Python 2 from documentation #13255

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Jul 28, 2022

Linking #12237

How do I type check my Python 2 code?
*************************************

You can use a :pep:`comment-based function annotation syntax
Copy link
Member

Choose a reason for hiding this comment

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

Maybe leave this with an answer like "You can't, use mypy 0.971" or lower.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ehh. mypy will give you that message if you try to use --python-version 2.7 or synonyms. The people who are trying to type check Python 2 codebases for the first time today do not merit an FAQ entry

@hauntsaninja hauntsaninja merged commit 002f77c into python:master Jul 28, 2022
@hauntsaninja hauntsaninja deleted the rm-py2 branch July 28, 2022 03:31
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