mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 07:14:48 +08:00
23 lines
323 B
Python
23 lines
323 B
Python
def foo(x):
|
|
if 1.0:
|
|
return 1
|
|
else:
|
|
return ''
|
|
|
|
#? int()
|
|
foo(1)
|
|
|
|
|
|
# Exceptions are not analyzed. So check both if branches
|
|
def try_except(x):
|
|
try:
|
|
if 0:
|
|
return 1
|
|
else:
|
|
return ''
|
|
except AttributeError:
|
|
return 1.0
|
|
|
|
#? float() str()
|
|
try_except(1)
|