def any_action(value: str) -> str:
...
any_action = action(any_action) # at this point we save the reference to the function, so, it doesn't work.
any_action = my_decorator(any_action)
and if it was inverted it'd be:
def any_action(value: str) -> str:
...
any_action = my_decorator(any_action)
any_action = action(any_action) # The signature of the my_decorator won't be correct for introspecting.
Describe the solution you'd like to see
We could maybe make it work by not storing the reference and just storing the module/function name to get for calling but still introspecting on the given one (but it does have some caveats too).
Issue by fabioz Monday Jan 29, 2024 at 11:34 GMT Originally opened as https://github.com/robocorp/robocorp/issues/202
Target components
action_server, actions
Description
i.e.: As something as:
is the same as:
and if it was inverted it'd be:
Describe the solution you'd like to see
We could maybe make it work by not storing the reference and just storing the module/function name to get for calling but still introspecting on the given one (but it does have some caveats too).
Describe alternatives you've considered
No response