-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Remove __ne__ methods #7257
Remove __ne__ methods #7257
Conversation
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.
please check the test failures as well
This pull request introduces 1 alert and fixes 2 when merging 1d0dee3 into fdb4af3 - view on LGTM.com new alerts:
fixed alerts:
|
@auvipy I'm not quite sure my changes caused the test failures. They all appear to be related to codecov connectivity/token issues. If you can re-trigger the jobs, and they still fail, I'll have a closer look. The |
Codecov Report
@@ Coverage Diff @@
## master #7257 +/- ##
==========================================
+ Coverage 89.31% 89.32% +0.01%
==========================================
Files 138 138
Lines 16774 16745 -29
Branches 2450 2448 -2
==========================================
- Hits 14982 14958 -24
+ Misses 1560 1555 -5
Partials 232 232
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This pull request introduces 4 alerts and fixes 1 when merging f749ae9 into fdb4af3 - view on LGTM.com new alerts:
fixed alerts:
|
These are already defined as the opposite of __eq__ in Python 3, and when __eq__ returns NotImplemented, Python by default will return True.
f749ae9
to
30e13ce
Compare
This pull request introduces 25 alerts and fixes 2 when merging 30e13ce into 25ca389 - view on LGTM.com new alerts:
fixed alerts:
|
I'm not really sure what the sentiments are for this type of change. Python's documentation was slightly unclear to me, and I wrote some sample code to clarify how it works.
https://gist.github.com/atombrella/c16693f564b4bbf375f70e5d56fe30ad
I think this
__ne__
method can be removed as well:Description
These are already defined as the opposite of eq in Python 3, and when eq
returns NotImplemented, Python by default will return True.