1
0
forked from VimPlug/jedi

fix lambdas in instances

This commit is contained in:
David Halter
2013-07-24 16:30:38 +02:00
parent 3c96ef8905
commit f4fdf904ee
2 changed files with 3 additions and 3 deletions

View File

@@ -657,8 +657,8 @@ def follow_call_list(call_list, follow_array=False):
if isinstance(call, pr.Lambda):
result.append(er.Function(call))
# With things like params, these can also be functions...
elif isinstance(call, (er.Function, er.Class, er.Instance,
dynamic.ArrayInstance)):
elif isinstance(call, pr.Base) and call.isinstance(er.Function,
er.Class, er.Instance, dynamic.ArrayInstance):
result.append(call)
# The string tokens are just operations (+, -, etc.)
elif not isinstance(call, (str, unicode)):