Repository navigation
Conversation
For example, add `my_backend_kwargs={"be_awesome": True}` to a dispatchable function call,
which will add `be_awesome=True` when using `my_backend` and will ignore it otherwise.
This should only be used for backend-specific keyword arguments.
|
One potential shortcoming of this is that this only works for backends that are valid identifiers. I think this is fine. |
*_kwargs=<backend>_kwargs=
|
I updated the docs to explain this feature (I was waiting on #7404). This means this is implemented, tested, and documented (and we had discussed and generally liked this spelling a long time ago), so now this is waiting on final review. |
|
This PR should now be much easier to review now that #7494 has been merged (thanks for that!) since both PRs renamed |
MridulS
left a comment
There was a problem hiding this comment.
Looks good, maybe we should log the silent dropping of unknown *_kwargs.
Thanks for the reviews! I have added a log message for backends that are not installed (or e.g. misspelled). |
For example, add
my_backend_kwargs={"be_awesome": True}to a dispatchable function call, which will addbe_awesome=Truewhen usingmy_backendand will ignore it otherwise. This should only be used for backend-specific keyword arguments.CC @rlratzel