You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
************* Module adafruit_miniqr
adafruit_miniqr.py:160:21: R1716: Simplify chained comparison between the operands (chained-comparison)
adafruit_miniqr.py:161:24: R1716: Simplify chained comparison between the operands (chained-comparison)
adafruit_miniqr.py:162:24: R1716: Simplify chained comparison between the operands (chained-comparison)
And the code:
159 test = (
160 (r >= 0 and r <= 6 and (c in (0, 6)))
161 or (c >= 0 and c <= 6 and (r in (0, 6)))
162 or (r >= 2 and r <= 4 and c >= 2 and c <= 4)
163 )
I think that in this case, it might just be better to add some pylint disables. I can't think of a cleaner way to do this, however I would assume there is one.
And the code:
I think that in this case, it might just be better to add some pylint disables. I can't think of a cleaner way to do this, however I would assume there is one.
Referencing main issue: adafruit/Adafruit_CircuitPython_Bundle#232
@kattni
The text was updated successfully, but these errors were encountered: