1
0
forked from VimPlug/jedi

some operator support for '*'

This commit is contained in:
David Halter
2012-10-04 01:31:57 +02:00
parent 7e39a7d1ba
commit 8795b4fbac
3 changed files with 21 additions and 1 deletions

View File

@@ -1401,6 +1401,12 @@ def follow_call_list(call_list):
pass
continue
result += follow_call(call)
elif call == '*':
if [r for r in result if isinstance(r, Array)
or isinstance(r, Instance)
and str(r.name) == 'str']:
# if it is an iterable, ignore * operations
next(calls_iterator)
return set(result)