mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-03 22:43:45 +08:00
__getitem__ in instances.
This commit is contained in:
1 parent
0ab9d331f8
commit
2515d283be
1 file changed
+1
@@ -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