Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow backend kwargs to be passed via special keywords *_kwargs= #7297

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

eriknw
Copy link
Contributor

@eriknw eriknw commented Feb 15, 2024

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.

CC @rlratzel

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.
@eriknw
Copy link
Contributor Author

eriknw commented Feb 15, 2024

One potential shortcoming of this is that this only works for backends that are valid identifiers. I think this is fine.

@dschult dschult added type: Enhancements Dispatching Related to dispatching and backend support labels Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dispatching Related to dispatching and backend support type: Enhancements
Development

Successfully merging this pull request may close these issues.

None yet

2 participants