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

Don't crash if module shadows special library module such as "typing" #8405

Merged
merged 4 commits into from
Feb 21, 2020

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