diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7deff86..89cdb2b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,7 @@ Changelog **Other changes** - ndonnx now exports type annotations. +- ``__array_namespace__`` now accepts an optional ``api_version`` argument to specify the version of the Array API to use. 0.4.0 (2024-05-16) ------------------ diff --git a/ndonnx/_array.py b/ndonnx/_array.py index 2067261..cc0e727 100644 --- a/ndonnx/_array.py +++ b/ndonnx/_array.py @@ -333,7 +333,7 @@ def __array_namespace__(*, api_version: str | None = None): if api_version is None: api_version = "2023.12" - if api_version == "2022.12": + if api_version == "2023.12": return ndx else: raise ValueError(f"Unsupported API version {api_version}")