forked from VimPlug/jedi
__getitem__ in instances.
This commit is contained in:
@@ -220,6 +220,7 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
|
||||
method = self.get_subscope_by_name('__getitem__')
|
||||
except KeyError:
|
||||
debug.warning('No __getitem__, cannot access the array.')
|
||||
return []
|
||||
else:
|
||||
return self._evaluator.execute(method, [iterable.AlreadyEvaluated(indexes)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user