Alluka icon indicating copy to clipboard operation
Alluka copied to clipboard

FR: Inject without manipulating the signature

Open ashleney opened this issue 3 years ago • 0 comments

Some use-cases may require injections to be dynamic, the current approach does not allow this.

The ideal usage would be

@client.as_self_injecting_idk
async def callback(
    parameter: MyType
):
    ...

callback.set_injection("parameter", alluka.InjectedType(MyType))

ashleney avatar Feb 16 '22 12:02 ashleney