1
0
forked from VimPlug/jedi

implement __getitem__ access for CompiledObject

This commit is contained in:
Dave Halter
2014-04-04 12:59:16 +02:00
parent f7e236971b
commit 50ef3c7fa3
2 changed files with 21 additions and 6 deletions

View File

@@ -99,7 +99,11 @@ class Array(use_metaclass(CachedMetaClass, pr.Base)):
self._array = array
def get_index_types(self, indexes=[]):
""" Get the types of a specific index or all, if not given """
"""
Get the types of a specific index or all, if not given.
:param indexes: The index input types.
"""
result = []
if [index for index in indexes if isinstance(index, Slice)]:
return [self]