KEMBAR78
Allow running mypy if Python 2 typeshed stubs aren't installed by JukkaL · Pull Request #10494 · python/mypy · GitHub
Skip to content

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented May 17, 2021

This enables custom mypy configurations where only Python 3 is supported.

This enables custom mypy configurations where only Python 3 is supported.
@srittau
Copy link
Contributor

srittau commented May 17, 2021

You could actually split the Python 2 and 3 loading logic completely: You only need to check VERSIONS when checking Python 3, and only look at @python2 when checking Python 2.

@JukkaL
Copy link
Collaborator Author

JukkaL commented May 17, 2021

You could actually split the Python 2 and 3 loading logic completely: You only need to check VERSIONS when checking Python 3, and only look at @python2 when checking Python 2.

Yes, this would be possible once we no longer have shared Python 2/3 stdlib stubs.

@JukkaL JukkaL merged commit 329e615 into master May 17, 2021
@JukkaL JukkaL deleted the missing-py2-stubs branch May 17, 2021 13:06
@JelleZijlstra
Copy link
Member

this would be possible once we no longer have shared Python 2/3 stdlib stubs

We made this change recently in typeshed already.

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.

4 participants