KEMBAR78
Don't crash if module shadows special library module such as "typing" by JukkaL · Pull Request #8405 · python/mypy · GitHub
Skip to content

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 14, 2020

Special cases a small set of modules so that they must be defined in
typeshed, as otherwise it's likely that mypy can crash, as it assumes
that various things are defined in very specific ways in these modules.

Fixes #1876.

Special cases a small set of modules so that they must be defined in
typeshed, as otherwise it's likely that mypy can crash, as it assumes
that various things are defined in very specific ways in these modules.

Fixes #1876.
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

LG, thanks! (The Windows tests still fail however.)

@JukkaL JukkaL merged commit 09676c9 into master Feb 21, 2020
@gvanrossum gvanrossum deleted the bad-core-module branch August 26, 2020 21:25
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.

Fail fast if special module like typing not from typeshed

2 participants