array-api icon indicating copy to clipboard operation
array-api copied to clipboard

Include `__array_api_version__` in API specification section

Open honno opened this issue 3 years ago • 1 comments

xp.__array_api_version__ has been specified in our Versioning section for a while now (~2yrs), but no such mention of it is found in the API specification section, which is probably why this wasn't implemented in numpy/numpy/pull/18585 and all subsequent adoption efforts across the ecosystem (happy to submit respective PRs after we get this in).

So this PR simply creates a spec/API_specification/version.rst file which includes a documented __array_api_version__ attribute, which also will show up in our array-api/latest/API_specification/ page (as well as the sidebar).

honno avatar Sep 21 '22 11:09 honno

After this is merged, let's also add a test to the conformance suite.

Zac-HD avatar Sep 21 '22 16:09 Zac-HD

Merging as this got two green checks and is what we should have had.

leofang avatar Oct 17 '22 19:10 leofang