Skip to content

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