mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
27 lines
273 B
Python
27 lines
273 B
Python
# SIM202
|
|
if not a != b:
|
|
pass
|
|
|
|
# SIM202
|
|
if not a != (b + c):
|
|
pass
|
|
|
|
# SIM202
|
|
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 __eq__(self, other):
|
|
return not self != other
|