Skip to content

MAINT: Don't use Backend for delegation #265

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

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

crusaderky
Copy link
Contributor

Follow-up from #221 (comment)

Do not use the Backend enum outside of testing.

This enum contains a lot of "backends" that are just variant duplicates, which is an artifact of using this enum to parametrize the xp fixture. Which is a decent hack for pytest, but which doesn't make any sense in the context of the dispatch system.

This also allows for quite a bit of simplification without adding any weight to the delegate module itself.

@crusaderky crusaderky changed the title MAINT: don't use Backend for delegation MAINT: Don't use Backend for delegation Apr 15, 2025
@lucascolley lucascolley added this to the 0.7.2 milestone Apr 15, 2025
@lucascolley lucascolley added the maintenance general maintenance label Apr 15, 2025
Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Guido, I'm okay with this refactor. One question

@lucascolley lucascolley merged commit 6e3ad0f into data-apis:main Apr 15, 2025
10 checks passed
@crusaderky crusaderky deleted the backends branch April 15, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance general maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants