Skip to content

ENH: bump wrapped API versions to 2025.12#397

Merged
ev-br merged 3 commits intodata-apis:mainfrom
ev-br:bump_array_api_version
Feb 24, 2026
Merged

ENH: bump wrapped API versions to 2025.12#397
ev-br merged 3 commits intodata-apis:mainfrom
ev-br:bump_array_api_version

Conversation

@ev-br
Copy link
Member

@ev-br ev-br commented Feb 24, 2026

No description provided.

@ev-br ev-br added this to the 1.14 milestone Feb 24, 2026
Copilot AI review requested due to automatic review settings February 24, 2026 18:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. Line 59: _API_VERSIONS should include "2025.12" instead of "2024.12"
  2. Line 488: Warning message text references "2024.12"
  3. Line 492: Error message says "Only the 2024.12 version..."
  4. 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.

Suggested change
__array_api_version__: Final = "2025.12"
__array_api_version__: Final = "2024.12"

Copilot uses AI. Check for mistakes.
@ev-br ev-br merged commit 7c540f4 into data-apis:main Feb 24, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants