forked from VimPlug/jedi
method was needed
This commit is contained in:
@@ -454,7 +454,7 @@ class Execution(Executable):
|
||||
def get_return_types(self, evaluate_generator=False):
|
||||
""" Get the return types of a function. """
|
||||
stmts = []
|
||||
if isinstance(self.base, Class):
|
||||
if self.base.isinstance(Class):
|
||||
# There maybe executions of executions.
|
||||
stmts = [Instance(self.base, self.var_args)]
|
||||
elif isinstance(self.base, Generator):
|
||||
@@ -815,6 +815,9 @@ class Array(use_metaclass(CachedMetaClass, parsing.Base)):
|
||||
"""
|
||||
return builtin.builtin_scope
|
||||
|
||||
def get_parent_until(self):
|
||||
return builtin.builtin_scope
|
||||
|
||||
def __getattr__(self, name):
|
||||
if name not in ['type', 'start_pos']:
|
||||
raise AttributeError('Strange access: %s.' % name)
|
||||
|
||||
Reference in New Issue
Block a user