False positive unnecessary-negation for float comparison #9741
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs decision 🔒
Needs a decision before implemention or rejection
Bug description
The code below causes unnecessary-negation, which is wrong. For float comparisons, "not a < b" and "b <= a" are not equivalent: if a or b is nan, the first condition is true while the second is false.
Command used
Pylint output
Expected behavior
No warning
Pylint version
The text was updated successfully, but these errors were encountered: