mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
20 lines
454 B
Python
20 lines
454 B
Python
a = True if b else False # SIM210
|
|
|
|
a = True if b != c else False # SIM210
|
|
|
|
a = True if b + c else False # SIM210
|
|
|
|
a = False if b else True # OK
|
|
|
|
|
|
def f():
|
|
# OK
|
|
def bool():
|
|
return False
|
|
|
|
a = True if b else False
|
|
|
|
|
|
# Regression test for: https://github.com/astral-sh/ruff/issues/7076
|
|
samesld = True if (psl.privatesuffix(urlparse(response.url).netloc) ==
|
|
psl.privatesuffix(src.netloc)) else False
|