-
-
Notifications
You must be signed in to change notification settings - Fork 61
Make Python generated objects comparable #593
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
Conversation
Some discussion is needed here.
|
b54e2ef
to
48b0264
Compare
|
Ok then, we can leave it out. Maybe we can put
Here, you mean directly in the object (through the code generator)? Or externally in a utility file (e.g. in |
But when it is present, is it correct to include it in the |
Yes, because we are looking for equality, so that should include all regular fields, identifiers included. Again, we can add other methods that might ignore any identifier fields (class, id, name, …) |
0179d82
to
41b6714
Compare
Codecov Report
@@ Coverage Diff @@
## main #593 +/- ##
==========================================
+ Coverage 83.15% 83.19% +0.04%
==========================================
Files 20 20
Lines 3953 3963 +10
Branches 1104 1105 +1
==========================================
+ Hits 3287 3297 +10
Misses 431 431
Partials 235 235
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Closes #592.