Skip to content

MAINT: array_api_compat tweaks #285

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 1 commit into from
Apr 25, 2025
Merged

Conversation

crusaderky
Copy link
Contributor

Import to_device and tweak type annotations

@@ -12,29 +13,33 @@ from ._typing import Array, Device

# pylint: disable=missing-class-docstring,unused-argument

class Namespace(ModuleType):
def device(self, x: Array, /) -> Device: ...
Copy link
Contributor Author

@crusaderky crusaderky Apr 25, 2025

Choose a reason for hiding this comment

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

this was plain wrong. This is literally the one function that is NOT in a Array API namespace.

Copy link
Member

Choose a reason for hiding this comment

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

aha, good catch

@lucascolley lucascolley merged commit bb6129b into data-apis:main Apr 25, 2025
9 checks passed
@crusaderky crusaderky deleted the compat branch April 25, 2025 14:58
@lucascolley lucascolley added the maintenance general maintenance label Apr 25, 2025
@lucascolley lucascolley added this to the 0.7.2 milestone Apr 25, 2025
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