slices should be ignored in __getitem__ settings (for now)
This commit is contained in:
1 parent
d106b2ce2b
commit
23b4a89d1d
4 files changed
+18
-2
No files matched your search
@@ -169,6 +169,12 @@ class Instance(use_metaclass(CachedMetaClass, Executable)):
|
||||
return False
|
||||
|
||||
def get_index_types(self, indexes=[]):
|
||||
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__.
|
||||
# TODO support slices in a more general way.
|
||||
indexes = []
|
||||
|
||||
try:
|
||||
return self.execute_subscope_by_name('__getitem__', indexes)
|
||||
except KeyError:
|
||||
|
||||
Reference in new issue
Block a user