Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible bug in upis_builder.py #1

Open
NiltonDuarte opened this issue Jul 27, 2016 · 1 comment
Open

possible bug in upis_builder.py #1

NiltonDuarte opened this issue Jul 27, 2016 · 1 comment

Comments

@NiltonDuarte
Copy link

NiltonDuarte commented Jul 27, 2016

I was trying to work with set_parameter_lower_layer, it was't working, and tracking it I've found a possible bug in the upis_builder. Seens like it's not accounting varargs and keywords

wishful_framework/controller/upis_builder.py
line 40

def get_method_sig(method):
[...]
for arg in argspec.args:
     [...]
return "%s(%s)" % (method.__name__, ", ".join(args))

I`ve did this change and it worked perfectly.

for arg in argspec.args:
[...]
if argspec.varargs:
    args.append("*args")
if argspec.keywords:
     args.append("**kwargs")
return "%s(%s)" % (method.__name__, ", ".join(args))

@NiltonDuarte
Copy link
Author

Any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant