Skip to content

Fix crash on PlaceholderNode serialization and add regression test (GH-20796)#20876

Closed
Kaushalt2004 wants to merge 1 commit intopython:masterfrom
Kaushalt2004:fix-placeholder-serialize
Closed

Fix crash on PlaceholderNode serialization and add regression test (GH-20796)#20876
Kaushalt2004 wants to merge 1 commit intopython:masterfrom
Kaushalt2004:fix-placeholder-serialize

Conversation

@Kaushalt2004
Copy link
Contributor

This PR fixes a crash in mypy that occurred when encountering a PlaceholderNode during cache serialization, such as with invalid starred assignment syntax (*a = b). Instead of raising a NotImplementedError and crashing, mypy now logs a user-friendly error and skips cache writing for the problematic module.

@ilevkivskyi
Copy link
Member

I think you have pushed a wrong commit. Content of he PR doesn't match the description.

@Kaushalt2004
Copy link
Contributor Author

I think you have pushed a wrong commit. Content of he PR doesn't match the description.

Yes sorry there was a confusion.

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.

2 participants