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

Array API: Typing #415

Open
ntessore opened this issue Nov 13, 2024 · 1 comment
Open

Array API: Typing #415

ntessore opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
array-api Work is related to the Array API blocked The issue or pull request is blocked by something typing Static typing

Comments

@ntessore
Copy link
Collaborator

Add your issue here

We want to use the heroic efforts by @paddyroddy to have a fully typed GLASS to make the transition to the Array API easier. For example, if we had a full Array API typing implementation, we would trivially find issues such as atan vs arctan with a run of mypy.

@nstarman maintains a great resource in https://github.com/nstarman/array_api. Maybe we can look into how we can use this to everyone's benefit?

@Saransh-cpp
Copy link
Member

I spent some time on this, and we really can't do anything till there is a typing Protocol (or a superclass for typing purposes which is subclassed by every Array API abiding provider library (quite excessive)) in the array API standard itself.

@nstarman's (👋🏽 you might remember me from removestar) data-apis/array-api#589 is very promising and hopefully will be merged soon 🤞🏽

The PR is almost ready (and approved) and they will be discussing the same in array API's community meeting tomorrow.

Once that is merged and released, we can expect the new Protocol to solve our typing issues.

Marking this issue as blocked till the Array Protocol is a part of the Array API standard.

@Saransh-cpp Saransh-cpp added the blocked The issue or pull request is blocked by something label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
array-api Work is related to the Array API blocked The issue or pull request is blocked by something typing Static typing
Projects
None yet
Development

No branches or pull requests

3 participants