Skip to content

Allow adding a kwonly arg with "expected" in wraps #282

Description

@aulemahal

Hi!

I think it could be nice to allow the addition of a keyword-only arg when wrapping a function and using expected.

As wraps and update_wrapper only pass the items of expected directly to FunctionBuilder.add_arg, it could be a simple matter of allowing 3 elements tuples, i.e. : (name, default, kwonly), where kwonly is a boolean.

I might have time to suggest a PR in the next week.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions