Skip to content

possible bug in upis_builder.py #1

@NiltonDuarte

Description

@NiltonDuarte

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions