We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
from types import SimpleNamespace ns = SimpleNamespace() ns.x = 0 ns.y = 10 if ns.x >= 2 and ns.y < 2: pass
pylint pylint_bugrepro.py
************* Module pylint_bugrepro pylint_bugrepro.py:7:3: R1716: Simplify chained comparison between the operands (chained-comparison)
Nothing reported by Pylint
3.3.6 (latest at this time)
WSL 2 - Ubuntu 22 LTS
The text was updated successfully, but these errors were encountered:
Can't it be simplified as if ns.x >= 2 > ns.y or if ns.y < 2 <= ns.x ?
if ns.x >= 2 > ns.y
if ns.y < 2 <= ns.x
Sorry, something went wrong.
This is a strange "simplification", but alright, if this is what's expected...
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Bug description
Command used
Pylint output
Expected behavior
Nothing reported by Pylint
Pylint version
OS / Environment
WSL 2 - Ubuntu 22 LTS
The text was updated successfully, but these errors were encountered: