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

Drop support for Python 2 #8272

Merged
merged 4 commits into from
Jul 12, 2022
Merged

Drop support for Python 2 #8272

merged 4 commits into from
Jul 12, 2022

Conversation

AlexWaygood
Copy link
Member

Closes #7367

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

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

@ManuelZ
Copy link

ManuelZ commented Jul 25, 2022

If I'm using a MyPy version that still supports Python 2, will it be able to download stubs from Typeshed without issues?

@hauntsaninja
Copy link
Collaborator

mypy vendors a copy of typeshed. All currently released versions of mypy both a) support Python 2, b) vendor a copy of typeshed that supports Python 2. The next release of mypy will do neither.

mypy does let you use your own copy of typeshed using the --custom-typeshed-dir flag. Very few people use this, but in case this is what you were asking about, the answer is you won't be able to type check Python 2 code, but type checking Python 3 code should still work.

@ManuelZ
Copy link

ManuelZ commented Jul 25, 2022

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.

Dropping Python 2 support
5 participants