-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[mypyc] Support attributes that override properties #14377
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 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
554e393
Add failing test cases
JukkaL 96b2767
Fix accessing attribute that overrides a property
JukkaL f8f65cd
WIP partially enable test case
JukkaL c9f9ae8
Refactor mypyc.irbuild.prepare a little
JukkaL 147ccde
More refactoring
JukkaL e507645
Prefer attributes over methods, if both are defined
JukkaL 0243a1e
Generate method decl for implicit property getters
JukkaL 15b7b30
Fix serialization of the "implicit" attribute
JukkaL 8e638b0
Support simple use cases where an attribute overrides a property
JukkaL 44075a9
Fix case where both attribute and property are inherited
JukkaL c756c36
Support settable properties
JukkaL de7e436
Black + isort
JukkaL d92905d
Merge test cases
JukkaL 1fd4bc5
Merge more test cases
JukkaL d80842a
Fix edge case
JukkaL 0274969
Test case fixes
JukkaL 810c4e1
Add native int test cases
JukkaL b0ee424
Fix test case
JukkaL 479ffcd
Minor refactoring
JukkaL 039fe10
Fix self check
JukkaL 1996b8a
Improve comments and minor cleanup
JukkaL f5d4560
Minor refactoring
JukkaL 8fc012e
Make test cases compatible with CPython
JukkaL d948ce8
Merge branch 'master' into mypyc-property-inheritance
JukkaL 158ee54
Merge remote-tracking branch 'origin/master' into mypyc-property-inhe…
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
Refactor mypyc.irbuild.prepare a little
- Loading branch information
commit c9f9ae82b7e68e5486273d2adca981cc0d15cac6
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
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.
I had to restructure this to do things in a different order. Most of the logic hasn't changed. I also extracted some functionality to separate methods since the function was already quite big.