mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
21 lines
257 B
Python
21 lines
257 B
Python
if not (not a): # SIM208
|
|
pass
|
|
|
|
if not (not (a == b)): # SIM208
|
|
pass
|
|
|
|
if not a: # OK
|
|
pass
|
|
|
|
if not a == b: # OK
|
|
pass
|
|
|
|
if not a != b: # OK
|
|
pass
|
|
|
|
a = not not b # SIM208
|
|
|
|
f(not not a) # SIM208
|
|
|
|
if 1 + (not (not a)): # SIM208
|
|
pass
|