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
Hey there! First of all, thanks for this wonderful package. We are currently facing an issue when dealing with "Signature Changing Decorators" functionality,
Currently, wrapt allows you to change wrapped function's signature via the argspec_factory adapter and it works. The question is, how can you send current args / kwargs to this argspec_factory adapter so you can change the function´s signature depending on the value(s) of current args / kwargs. So, for example, if user gives input "consider_port_is_present" = False, then we could change wrapped function's signature depending on that value (e.g. adding "port" argument to argspec only if consider_port_is_present is True).
The text was updated successfully, but these errors were encountered:
Can you show any rough code you have now? I don't need the full body of your decorator, but do need to see how using argspec_factory now and whether you are creating a decorator which takes arguments. If not creating a decorator with arguments I don't understand where consider_port_is_present argument is being supplied.
Hey there! First of all, thanks for this wonderful package. We are currently facing an issue when dealing with "Signature Changing Decorators" functionality,
Currently, wrapt allows you to change wrapped function's signature via the argspec_factory adapter and it works. The question is, how can you send current args / kwargs to this argspec_factory adapter so you can change the function´s signature depending on the value(s) of current args / kwargs. So, for example, if user gives input "consider_port_is_present" = False, then we could change wrapped function's signature depending on that value (e.g. adding "port" argument to argspec only if consider_port_is_present is True).
The text was updated successfully, but these errors were encountered: