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.
Hi!
I think it could be nice to allow the addition of a keyword-only arg when wrapping a function and using
expected.As
wrapsandupdate_wrapperonly pass the items ofexpecteddirectly toFunctionBuilder.add_arg, it could be a simple matter of allowing 3 elements tuples, i.e. :(name, default, kwonly), wherekwonlyis a boolean.I might have time to suggest a PR in the next week.