summaryrefslogtreecommitdiff
path: root/numpy/array_api
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2021-08-04 16:55:51 -0600
committerAaron Meurer <asmeurer@gmail.com>2021-08-04 16:55:51 -0600
commitee852b432371e144456e012ec316c117170a7340 (patch)
treec431b974ea5888182cf19b6a053b1b50aa04aa76 /numpy/array_api
parent6e57d829cb6628610e163524f203245b247a2839 (diff)
downloadnumpy-ee852b432371e144456e012ec316c117170a7340.tar.gz
Print a warning when importing the numpy.array_api submodule
Diffstat (limited to 'numpy/array_api')
-rw-r--r--numpy/array_api/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/array_api/__init__.py b/numpy/array_api/__init__.py
index 4650e3db8..1e9790a14 100644
--- a/numpy/array_api/__init__.py
+++ b/numpy/array_api/__init__.py
@@ -115,6 +115,10 @@ Still TODO in this module are:
"""
+import warnings
+warnings.warn("The numpy.array_api submodule is still experimental. See NEP 47.",
+ stacklevel=2)
+
__all__ = []
from ._constants import e, inf, nan, pi