fixed minor bug
This commit is contained in:
parent
e15e29d673
commit
0c8029d7e1
@ -195,11 +195,11 @@ class TCall(Type):
|
|||||||
elif isinstance(x, TFunc):
|
elif isinstance(x, TFunc):
|
||||||
fn = x
|
fn = x
|
||||||
for i in range(len(y.calls)):
|
for i in range(len(y.calls)):
|
||||||
|
if not x.instantiated:
|
||||||
|
fn = x.instantiate()
|
||||||
posargs, kwargs, ret, _ = y.calls[i]
|
posargs, kwargs, ret, _ = y.calls[i]
|
||||||
c = y.calls[i]
|
c = y.calls[i]
|
||||||
c[3] = fn
|
c[3] = fn
|
||||||
if not x.instantiated:
|
|
||||||
fn = x.instantiate()
|
|
||||||
all_args = set(arg.name for arg in fn.args)
|
all_args = set(arg.name for arg in fn.args)
|
||||||
required = set(arg.name for arg in fn.args if not
|
required = set(arg.name for arg in fn.args if not
|
||||||
arg.is_optional)
|
arg.is_optional)
|
||||||
|
@ -32,7 +32,7 @@ c = g.foo(True, 1)
|
|||||||
d = g.foo(True, True)
|
d = g.foo(True, True)
|
||||||
|
|
||||||
f = Foo(1)
|
f = Foo(1)
|
||||||
g = Foo(1)
|
g = Foo(True)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print(src)
|
print(src)
|
||||||
|
Loading…
Reference in New Issue
Block a user