refactor_composer #535
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#535
Loading…
Reference in New Issue
No description provided.
Delete Branch "refactor_composer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current composer allows inheriting from classes defined later in program, so that the following code compiles:
After this PR, the above code will raise the exception:
NameError: name 'B' is not defined (at src/test.py:3:9)
. This check only applies to the inheritance, and type annotations will still work i.e.This removes the possibility of cyclic inheritance and simplifies the process of finding all class ancestors. The PR also fixes up minor issues like disabling default value assignment to
self
i.e.and cleans up the method/field analysis part of class definition analysis.
5654190503
to45ae761ed9
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.