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

@@ -167,10 +167,9 @@ class Instance(use_metaclass(CachedMetaClass, Executable)):
except KeyError:
return False
def get_index_types(self, index=None):
args = [] if index is None else [index]
def get_index_types(self, indexes=[]):
try:
return self.execute_subscope_by_name('__getitem__', args)
return self.execute_subscope_by_name('__getitem__', indexes)
except KeyError:
debug.warning('No __getitem__, cannot access the array.')
return []