Avoiding flagging elif statements as potential ternaries (#1694)

This commit is contained in:
Charlie Marsh
2023-01-06 10:20:45 -05:00
committed by GitHub
parent 18a301a214
commit 8a3a6a901a
2 changed files with 42 additions and 17 deletions

View File

@@ -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