Skip to content

Commit 12e2e5b

Browse files
committed
ENH: bump version to 2025.12 in common/_helpers.py
1 parent 3818fa9 commit 12e2e5b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

array_api_compat/common/_helpers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
| SupportsArrayNamespace[Any]
5656
)
5757

58-
_API_VERSIONS_OLD: Final = frozenset({"2021.12", "2022.12", "2023.12"})
59-
_API_VERSIONS: Final = _API_VERSIONS_OLD | frozenset({"2024.12"})
58+
_API_VERSIONS_OLD: Final = frozenset({"2021.12", "2022.12", "2023.12", "2024.12"})
59+
_API_VERSIONS: Final = _API_VERSIONS_OLD | frozenset({"2025.12"})
6060

6161

6262
@lru_cache(100)
@@ -485,11 +485,11 @@ def is_array_api_strict_namespace(xp: Namespace) -> bool:
485485
def _check_api_version(api_version: str | None) -> None:
486486
if api_version in _API_VERSIONS_OLD:
487487
warnings.warn(
488-
f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2024.12"
488+
f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2025.12"
489489
)
490490
elif api_version is not None and api_version not in _API_VERSIONS:
491491
raise ValueError(
492-
"Only the 2024.12 version of the array API specification is currently supported"
492+
"Only the 2025.12 version of the array API specification is currently supported"
493493
)
494494

495495

@@ -589,7 +589,7 @@ def array_namespace(
589589
590590
api_version: str
591591
The newest version of the spec that you need support for (currently
592-
the compat library wrapped APIs support v2024.12).
592+
the compat library wrapped APIs support v2025.12).
593593
594594
use_compat: bool or None
595595
If None (the default), the native namespace will be returned if it is

0 commit comments

Comments
 (0)