From a26fb589ea776db7506c8cf11acabe665c986071 Mon Sep 17 00:00:00 2001 From: Tom White Date: Fri, 21 Jun 2024 10:18:07 +0100 Subject: [PATCH] Indicate that we support both 2021.12 and 2022.12 versions of the Array API --- cubed/array_api/array_object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubed/array_api/array_object.py b/cubed/array_api/array_object.py index 88e8a67f..b3e8abe9 100644 --- a/cubed/array_api/array_object.py +++ b/cubed/array_api/array_object.py @@ -361,7 +361,7 @@ def __abs__(self, /): return elemwise(nxp.abs, self, dtype=dtype) def __array_namespace__(self, /, *, api_version=None): - if api_version is not None and not api_version.startswith("2022."): + if api_version is not None and api_version not in ("2021.12", "2022.12"): raise ValueError(f"Unrecognized array API version: {api_version!r}") import cubed.array_api as array_api