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

27 lines
273 B
Python

# SIM201
if not a == b:
pass
# SIM201
if not a == (b + c):
pass
# SIM201
if not (a + b) == c:
pass
# OK
if not a != b:
pass
# OK
if a == b:
pass
# OK
if not a == b:
raise ValueError()
# OK
def __ne__(self, other):
return not self == other