-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New semantic analyzer: fix crash related to dataclasses.InitVar (#6984)
Previously InitVar attributes were missing on the second semantic analysis pass, since the dataclasses plugin removes those attributes from the class symbol table. This caused a crash. The fix is to reset the attribute declarations so that they will be re-added to the symbol table on successive semantic analysis passes. Fixes #6955.
- Loading branch information
Showing
2 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters