ruff/crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM109.py
2023-09-20 08:38:27 +02:00

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