ENH: bump wrapped API versions to 2025.12#397
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Array API version from 2024.12 to 2025.12 across all wrapped array library backends (NumPy, PyTorch, CuPy, and Dask). The change reflects the project's move to support the newer 2025.12 version of the Array API specification.
Changes:
- Updated
__array_api_version__constant from "2024.12" to "2025.12" in all four wrapper modules
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| array_api_compat/numpy/init.py | Updated Array API version constant to 2025.12 |
| array_api_compat/torch/init.py | Updated Array API version constant to 2025.12 |
| array_api_compat/cupy/init.py | Updated Array API version constant to 2025.12 |
| array_api_compat/dask/array/init.py | Updated Array API version constant to 2025.12 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| from .linalg import matrix_transpose, vecdot # type: ignore[no-redef] # noqa: F401 | ||
|
|
||
| __array_api_version__: Final = "2024.12" | ||
| __array_api_version__: Final = "2025.12" |
There was a problem hiding this comment.
This version bump is incomplete. The file array_api_compat/common/_helpers.py also needs to be updated to reference 2025.12 instead of 2024.12 in several places:
- Line 59:
_API_VERSIONSshould include "2025.12" instead of "2024.12" - Line 488: Warning message text references "2024.12"
- Line 492: Error message says "Only the 2024.12 version..."
- Line 592: Documentation comment says "v2024.12"
Without updating these references, the wrapped libraries will report version 2025.12 but the array_namespace function will not accept this version as valid, causing runtime errors.
| __array_api_version__: Final = "2025.12" | |
| __array_api_version__: Final = "2024.12" |
No description provided.