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

Fix crash in astdiff and clean it up #14497

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

ilevkivskyi
Copy link
Member

@ilevkivskyi ilevkivskyi commented Jan 21, 2023

Ref #14329

This fixes one of the crashes reported in the issue. In fact, using recursive type caught this crash statically, plus another subtle crash in snapshot_optional_type(), without a single false positive (I was able to cleanly type also symbol table snapshots, but decided it is not worth the churn since we only ever compare them with ==, supported by ~every Python object). I feel triumphant :-)

@github-actions
Copy link
Contributor

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

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Very nice!

@JukkaL JukkaL merged commit a08388c into python:master Jan 22, 2023
@ilevkivskyi ilevkivskyi deleted the fix-astdiff-crash branch January 22, 2023 11:57
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.

3 participants