Skip to content

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

Merged
JukkaL merged 4 commits into
masterfrom
bad-core-module
Feb 21, 2020
Merged

Don't crash if module shadows special library module such as "typing"#8405
JukkaL merged 4 commits into
masterfrom
bad-core-module

Conversation

@JukkaL

Copy link
Copy Markdown
Collaborator

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.

@ilevkivskyiilevkivskyi left a comment

Copy link
Copy Markdown
Member

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 masterFeb 21, 2020
@hauntsaninjahauntsaninja mentioned this pull request Feb 21, 2020
@gvanrossum
gvanrossum deleted the bad-core-module branch August 26, 2020 21:25
Sign up for freeto 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

@JukkaL@ilevkivskyi