1
0
forked from VimPlug/jedi

refactor general array lookup method get_index_types

This commit is contained in:
Dave Halter
2014-05-12 15:23:48 +02:00
parent 70d85d1b3a
commit b6ec589997
6 changed files with 28 additions and 19 deletions

View File

@@ -168,7 +168,9 @@ class Instance(use_metaclass(CachedMetaClass, Executable)):
except KeyError:
return False
def get_index_types(self, indexes=[]):
def get_index_types(self, index_array):
indexes = iterable.create_indexes_or_slices(self._evaluator, index_array)
if any([isinstance(i, iterable.Slice) for i in indexes]):
# Slice support in Jedi is very marginal, at the moment, so just
# ignore them in case of __getitem__.