Skip to content

DynamicCore doesn't handle named only arguments properly #111

@pekkaklarck

Description

@pekkaklarck

For example, arg in this example isn't handled properly:

class Example(DynamicCore):
    def __init__(self):
        super().__init__([])

    @keyword
    def kw(self, *, arg):
        print(arg)

Libdoc reports arg as a normal argument, not as named-only as it should. Luckily execution like

Kw    arg=value

works as expected so named-only arguments aren't totally broken. Invalid usage like

Kw    value

isn't handled properly, though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions