[pylint] Implement nan-comparison (PLW0117)#10401
[pylint] Implement nan-comparison (PLW0117)#10401charliermarsh merged 6 commits intoastral-sh:mainfrom
pylint] Implement nan-comparison (PLW0117)#10401Conversation
|
| 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.
Also interested to hear if there is a better way to do this
There was a problem hiding this comment.
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.