Alluka
Alluka copied to clipboard
FR: Inject without manipulating the signature
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))