1
0
forked from VimPlug/jedi

more complicated logic working with else

This commit is contained in:
Dave Halter
2014-08-07 12:02:08 +02:00
parent d94a70b524
commit ee65764c3a
2 changed files with 31 additions and 0 deletions

View File

@@ -6,3 +6,17 @@ def foo(x):
#? int()
foo(1)
# Exceptions are not analyzed. So check both if branches
def try_except(x):
try:
if 1.0:
return 1
else:
return ''
except AttributeError:
return 1.0
#? int() float()
try_except(1)