Files
openide/python/testData/inspections/ChainedComparison8.py
Mikhail Golubev 36df2222b6 PY-24942 Don't chain AND expressions in Simplify chained comparison
When the leftmost binary relationship expression of the two being
transformed belongs itself to the left operand of a nested logical AND.
Previously, we mistakenly tried to insert the containing logical AND
expression into the generated chained comparison when useRightChildOfLeft
parameter of the quickfix was false.
2018-03-23 17:43:41 +03:00

1 line
56 B
Python

row >= 0 and 0 <= col < self.width and row < self.height