python-dependency-injector icon indicating copy to clipboard operation
python-dependency-injector copied to clipboard

Add provided()<func>.call *args, **kwargs arguments

Open pavalso opened this issue 2 days ago • 0 comments

The title is self-explanatory. This feature would make it possible to pass arguments to the call function, which currently lacks this capability. I believe this would be a valuable addition.

I give some examples that would work with this feature:

Being logger a providers.Singleton(Logger, "base")

Provide["logger", provided().getChild.call("child")]
# This once wired would resolve into base.child logger

pavalso avatar Dec 10 '25 09:12 pavalso