superfluous-parens
false positive for is not
tests
#5930
Labels
Bug 🪲
False Positive 🦟
A message is emitted but nothing is wrong with the code
Help wanted 🙏
Outside help would be appreciated, good for new contributors
Milestone
Bug description
I just got the lint
C0325: Unnecessary parens after 'not' keyword (superfluous-parens)
, so I removed the parens it referred to, but thankfully a unit test caught that these are not the same, and the parens are needed (removing them changes the logic!).I have been able to create a minimal example that I believe reproduces this
Configuration
No response
Command used
Pylint output
Expected behavior
C0325 should not be output here.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: