From 6579448e6c76b2ad4487903688ac9fe3c02ff39c Mon Sep 17 00:00:00 2001 From: Matthew Barber Date: Sun, 2 Oct 2022 12:35:59 +0100 Subject: Add `__array_api_version__` to `numpy.array_api` namespace --- numpy/array_api/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'numpy/array_api') diff --git a/numpy/array_api/__init__.py b/numpy/array_api/__init__.py index bbe2fdce2..5e58ee0a8 100644 --- a/numpy/array_api/__init__.py +++ b/numpy/array_api/__init__.py @@ -121,7 +121,9 @@ warnings.warn( "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 -- cgit v1.2.1