You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
andupdate_wrapper
only pass the items ofexpected
directly toFunctionBuilder.add_arg
, it could be a simple matter of allowing 3 elements tuples, i.e. :(name, default, kwonly)
, wherekwonly
is a boolean.I might have time to suggest a PR in the next week.
The text was updated successfully, but these errors were encountered: