1
0
forked from VimPlug/jedi

moved the input of get_index_types to a more typical type system

This commit is contained in:
Dave Halter
2014-04-04 12:09:46 +02:00
parent 84fde13b84
commit f7e236971b
4 changed files with 27 additions and 28 deletions

View File

@@ -272,7 +272,8 @@ class Evaluator(object):
# This must be an execution, either () or [].
if current.type == pr.Array.LIST:
if hasattr(typ, 'get_index_types'):
result = typ.get_index_types(current)
slc = iterable.create_indexes_or_slices(self, current)
result = typ.get_index_types(slc)
elif current.type not in [pr.Array.DICT]:
# Scope must be a class or func - make an instance or execution.
result = self.execute(typ, current)