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__')
|
method = self.get_subscope_by_name('__getitem__')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
debug.warning('No __getitem__, cannot access the array.')
|
debug.warning('No __getitem__, cannot access the array.')
|
||||||
|
return []
|
||||||
else:
|
else:
|
||||||
return self._evaluator.execute(method, [iterable.AlreadyEvaluated(indexes)])
|
return self._evaluator.execute(method, [iterable.AlreadyEvaluated(indexes)])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user