-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fine-grained: Fix AST merge issues #4652
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f51cad0
Merge unanalyzed_type attribute of FuncDefs
JukkaL 1da9ba3
Fix merge of Var info attributes inside TypeInfos
JukkaL 8234452
Fix TypeList types in AST merge
JukkaL 4d51e0c
Fix AST merge of TypeAliasExpr nodes
JukkaL 0f95792
Fix AST merge of NewType nodes
JukkaL 49ea762
Fix leak of old MypyFile objects in AST merge
JukkaL c71dff9
Fix merge of TypeVarExpr
JukkaL a170a98
Fix AST merge of newtypes
JukkaL ebf131a
Fix AST merge of NamedTupleExpr
JukkaL 3d6a9c6
Fix AST traverser special case (ClassDef.analyzed)
JukkaL 0f4902f
Fixes to AST merge of named tuples and typed dicts
JukkaL 6aa2461
Don't retain stale AST nodes in semantic analyzer
JukkaL d97486e
Remove no longer needed attribute blacklist items
JukkaL 8acdf48
Don't collect all types in fine-grained incremental tests
JukkaL aa98711
Add another AST merge fixup
JukkaL 6638d77
Fixes to AST merge; some refactoring
JukkaL fe7672a
Remove debug code
JukkaL ee7afa9
Fix merge test cases
JukkaL 7cb8a90
Fix type check
JukkaL 9757374
Remove redundant fixups
JukkaL 9923178
Merge additional TypeInfo attributes; minor refactoring
JukkaL 008a9a8
Fix test failure
JukkaL e761197
Fix typo
JukkaL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can other sorts of "synthetic" types show up in our traversal?
Would it be a better approach in the future to make the merger a synthetic type traverser?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm looks like we could be hitting other such types as well. Maybe making it a "synthetic type visitor" is the right thing to do. I'll consider making a follow-up PR about this.
On the other hand, we should perhaps only have one sort of type visitor. I don't really see the benefit of having two sorts of visitors.