summaryrefslogtreecommitdiff
path: root/numpy/_array_api
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/_array_api')
-rw-r--r--numpy/_array_api/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/numpy/_array_api/__init__.py b/numpy/_array_api/__init__.py
index ad66bc565..6afddb26a 100644
--- a/numpy/_array_api/__init__.py
+++ b/numpy/_array_api/__init__.py
@@ -58,6 +58,20 @@ A few notes about the current state of this submodule:
guaranteed to give a comprehensive coverage of the spec. Therefore, those
reviewing this submodule should refer to the standard documents themselves.
+- All functions include type annotations, corresponding to those given in the
+ spec (see _types.py for definitions of the types 'array', 'device', and
+ 'dtype'). These do not currently fully pass mypy due to some limitations in
+ mypy.
+
+- The array object is not modified at all. That means that functions return
+ np.ndarray, which has methods and attributes that aren't part of the spec.
+ Modifying/subclassing ndarray for the purposes of the array API namespace
+ was considered too complex for this initial implementation.
+
+- All functions that would otherwise accept array-like input have been wrapped
+ to only accept ndarray (with the exception of methods on the array object,
+ which are not modified).
+
- All places where the implementations in this submodule are known to deviate
from their corresponding functions in NumPy are marked with "# Note"
comments. Reviewers should make note of these comments.