Returns a function which can either serve as a decorator itself or return another decorator function, in order to make it possible to use the various decorators (@heli.hook
, @heli.reporter
, and @heli.button
) either without parentheses or with parameters.
WARNING: This is an internal function. Its use in user code is not recommended or supported, and its signature can change in future updates without warning. Use one of the suggested functions above instead, if applicable.
Parameters
todo — func(name, fn, **kwargs), required
The action that the returned decorator function should take on its decorated functions.
Notes and Examples