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'm trying to inject a positional argument to a descendent decorator while it has more positionals.
The piece of code, it's more likely incorrent, but whatever:
raise ExecutionError(
kink.errors.execution_error.ExecutionError: Cannot execute function without required parameters. Did you forget to bind the following parameters: `handler_args`, `handler_params` inside the service `<function handler at 0x7fe16b1b8400>`?
To be honest, i expected that di only injectes the bot_cmd argument and leave the others handler_args, handler_params as is, not check them for beign in a container.
Could it be defined to make a partial check?
The text was updated successfully, but these errors were encountered:
No, not really. The entire idea behind the exception is to support autowiring and let people know what is still missing. You would need to call the function and set the arguments in the call (even if they are set to None) to superpass this behaviour.
Hey, very nice and lighweight di library!
I'm trying to inject a positional argument to a descendent decorator while it has more positionals.
The piece of code, it's more likely incorrent, but whatever:
For now, an error is raised:
To be honest, i expected that
di
only injectes thebot_cmd
argument and leave the othershandler_args, handler_params
as is, not check them for beign in a container.Could it be defined to make a partial check?
The text was updated successfully, but these errors were encountered: