1
0
forked from VimPlug/jedi

Fix complex instance name resolving.

This commit is contained in:
Dave Halter
2016-11-27 11:51:12 +01:00
parent 4ad0179b72
commit 558e8add49
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def _evaluate_for_annotation(context, annotation, index=None):
if index is not None:
definitions = list(itertools.chain.from_iterable(
definition.py__getitem__(index) for definition in definitions
if definition.type == 'tuple' and
if definition.array_type == 'tuple' and
len(list(definition.py__iter__())) >= index))
return unite(d.execute_evaluated() for d in definitions)
else: