From 9f71a68bb2e6423189130dfe96b772843139f95d Mon Sep 17 00:00:00 2001 From: Matthew Barber Date: Sun, 2 Oct 2022 12:35:59 +0100 Subject: [PATCH] Add `__array_api_version__` to `numpy.array_api` namespace --- numpy/array_api/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/numpy/array_api/__init__.py b/numpy/array_api/__init__.py index bbe2fdce26e3..5e58ee0a8998 100644 --- a/numpy/array_api/__init__.py +++ b/numpy/array_api/__init__.py @@ -121,7 +121,9 @@ "The numpy.array_api submodule is still experimental. See NEP 47.", stacklevel=2 ) -__all__ = [] +__array_api_version__ = "2021.12" + +__all__ = ["__array_api_version__"] from ._constants import e, inf, nan, pi