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 --py2 argument #15670

Merged
merged 1 commit into from
Jul 14, 2023
Merged

Remove --py2 argument #15670

merged 1 commit into from
Jul 14, 2023

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Jul 14, 2023

Remove the --py2 argument. It already creates a parser error.

mypy/mypy/main.py

Lines 1267 to 1271 in 7a94183

if options.python_version < (3,):
parser.error(
"Mypy no longer supports checking Python 2 code. "
"Consider pinning to mypy<0.980 if you need to check Python 2 code."
)

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks! It's been long enough since we dropped support that this makes sense

@hauntsaninja hauntsaninja merged commit 1958cb6 into python:master Jul 14, 2023
18 checks passed
@cdce8p cdce8p deleted the remove-py2 branch July 14, 2023 18:32
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