1
0
forked from VimPlug/jedi

method was needed

This commit is contained in:
David Halter
2012-09-03 17:40:34 +02:00
parent d143024408
commit a5d1427b09

View File

@@ -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)