-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[pylint
] Implement nan-comparison
(PLW0117
)
#10401
Conversation
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
PLW0117 | 48 | 48 | 0 | 0 | 0 |
All the violations in pandas are false positives and are mostly checking for the actual Interested to hear people's thoughts. |
} | ||
} | ||
|
||
fn is_nan_float(expr: &Expr) -> bool { |
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.
Also interested to hear if there is a better way to do this
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 tweaked it a little bit but it's generally correct. Kind of tedious to write out, but correct!
a4f8a30
to
caba4ea
Compare
Sorry had to fix the typo |
Summary
Implement pylint's nan-comparison, part of #970.
Test Plan
Text fixture was added.