1
0
forked from VimPlug/jedi

Super is now working. Still has the same flaws like the old implementation, but the tests are passing.

This commit is contained in:
Dave Halter
2014-10-28 16:22:59 +01:00
parent 500ac9b384
commit 4f2223ae7b
3 changed files with 21 additions and 15 deletions

View File

@@ -233,7 +233,7 @@ class Evaluator(object):
if trailer_op == '.':
new_types += self.find_types(typ, node)
elif trailer_op == '(':
new_types += self.execute(typ, node)
new_types += self.execute(typ, node, trailer)
elif trailer_op == '[':
try:
get = typ.get_index_types
@@ -245,8 +245,8 @@ class Evaluator(object):
return new_types
@debug.increase_indent
def execute(self, obj, arguments=()):
arguments = param.Arguments(self, arguments)
def execute(self, obj, arguments=(), trailer=None):
arguments = param.Arguments(self, arguments, trailer)
if obj.isinstance(er.Function):
obj = obj.get_decorated_func()