chained-comparison / R1716ΒΆ
Message emitted:
Simplify chained comparison between the operands
Description:
This message is emitted when pylint encounters boolean operation like "a < b and b < c", suggesting instead to refactor it to "a < b < c"
Problematic code:
a = int(input())
b = int(input())
c = int(input())
if a < b and b < c: # [chained-comparison]
pass
Correct code:
a = int(input())
b = int(input())
c = int(input())
if a < b < c:
pass
Created by the refactoring checker.