mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Avoiding flagging elif statements as potential ternaries (#1694)
This commit is contained in:
@@ -14,3 +14,18 @@ elif c:
|
||||
b = a
|
||||
else:
|
||||
b = d
|
||||
|
||||
if True:
|
||||
pass
|
||||
elif a:
|
||||
b = 1
|
||||
else:
|
||||
b = 2
|
||||
|
||||
if True:
|
||||
pass
|
||||
else:
|
||||
if a:
|
||||
b = 1
|
||||
else:
|
||||
b = 2
|
||||
|
||||
Reference in New Issue
Block a user