mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
31 lines
333 B
Python
31 lines
333 B
Python
# SIM109
|
|
if a == b or a == c:
|
|
d
|
|
|
|
# SIM109
|
|
if (a == b or a == c) and None:
|
|
d
|
|
|
|
# SIM109
|
|
if a == b or a == c or None:
|
|
d
|
|
|
|
# SIM109
|
|
if a == b or None or a == c:
|
|
d
|
|
|
|
# OK
|
|
if a in (b, c):
|
|
d
|
|
|
|
# OK
|
|
if a == b or a == c():
|
|
d
|
|
|
|
# OK
|
|
if (
|
|
a == b
|
|
# This comment prevents us from raising SIM109
|
|
or a == c
|
|
):
|
|
d
|