🌐 AI搜索 & 代理 主页
Skip to content

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

@pavalso

Description

@pavalso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions