Files
openide/python/testData/inspections/ChainedComparison5.py

5 lines
164 B
Python

mapsize = 35
def test(x, y):
if <weak_warning descr="Simplify chained comparison">0 <= x < <caret>mapsize and y >= 0 and y < mapsize</weak_warning>:
return 1