We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c51249a commit 3af4f2aCopy full SHA for 3af4f2a
array_api_compat/common/_helpers.py
@@ -80,7 +80,7 @@ def is_array_api_obj(x):
80
def _check_api_version(api_version):
81
if api_version == '2021.12':
82
warnings.warn("The 2021.12 version of the array API specification was requested but the returned namespace is actually version 2022.12")
83
- if api_version is not None and api_version != '2022.12':
+ elif api_version is not None and api_version != '2022.12':
84
raise ValueError("Only the 2022.12 version of the array API specification is currently supported")
85
86
def array_namespace(*xs, api_version=None, _use_compat=True):
0 commit comments