data-apis / array-api-compat

Compatibility layer for common array libraries to support the Array API
https://data-apis.org/array-api-compat/
MIT License
70 stars 22 forks source link

Update the api_version check to allow 2022.12 and warn on 2021.12 #88

Closed asmeurer closed 6 months ago

asmeurer commented 7 months ago

Not sure if a warning is the best option here. The returned namespace is 2022.12 compliant, and that is also 2021.12 compliant (except for a few minor things). I don't think it's worth trying to support both, unless someone has a real use-case.

rgommers commented 7 months ago

I'd leave out the warning and just return the superset of 2022.12