If branch inference should not trigger for things we don't know, fixes #1530

This commit is contained in:
Dave Halter
2020-03-31 22:46:17 +02:00
parent 604029568c
commit ac33d5dea3
4 changed files with 19 additions and 3 deletions

View File

@@ -75,6 +75,14 @@ def try_except(x):
#? float() str()
try_except(1)
def test_function():
a = int(input())
if a % 2 == 0:
return True
return "False"
#? bool() str()
test_function()
# -----------------
# elif
@@ -145,7 +153,7 @@ elif 1 == True:
a
if check != 1:
a = ''
#? str()
#? int() str()
a
if check == check:
a = list