Skip to content

Fix a crash on walrus in comprehension at class scope#14556

Merged
hauntsaninja merged 1 commit intopython:masterfrom
ilevkivskyi:fix-comp-crash
Jan 29, 2023
Merged

Fix a crash on walrus in comprehension at class scope#14556
hauntsaninja merged 1 commit intopython:masterfrom
ilevkivskyi:fix-comp-crash

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

Fixes #14201

The fix is trivial, turn an assert condition into a blocker error (with message matching Python syntax error). I also add a test case for a crash from the same issue that looks already fixed.

@github-actions
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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.

Thanks!

@hauntsaninja hauntsaninja merged commit c4ecd2b into python:master Jan 29, 2023
@ilevkivskyi ilevkivskyi deleted the fix-comp-crash branch January 30, 2023 08:20
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.

Several crashes on pyright test suite

2 participants