1
0
forked from VimPlug/jedi

lambdas: add correct parents and change evaluate

This commit is contained in:
David Halter
2012-12-22 19:43:30 +01:00
parent 77b2ea2dce
commit e701a4ef92
2 changed files with 6 additions and 2 deletions

View File

@@ -1374,8 +1374,8 @@ def follow_call_list(call_list):
result += follow_statement(stmt)
else:
# With things like params, these can also be functions...
if isinstance(call, (Function, Class, Instance,
dynamic.ArrayInstance)):
if isinstance(call, (parsing.Lambda, Function, Class,
Instance, dynamic.ArrayInstance)):
result.append(call)
# The string tokens are just operations (+, -, etc.)
elif not isinstance(call, (str, unicode)):