Open bersace opened 6 years ago
I ran into this too. A more general way to reproduce this is:
from clize import run
def f1(a, *others):
pass
def f2(b, *others):
f1(b, *others)
run(f2)
Basically, this happens if the function (f2) has a parameter and it calls another function (f1) with a parameter of the same name, forwarding the parameter as is. In this case, the sigtools will remove the parameter from func_signature.sources
thus cause the error.
Hi,
Here is a sample program to reproduce the traceback.
Here is the crash :
I expect a more insightful error. I'm wondering wheither the bug is in clize or sigtools.
I found a workaround : i edit
kwargs
instead of varargs.