summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2021-11-02 11:30:32 +0200
committermattip <matti.picus@gmail.com>2021-11-02 11:36:07 +0200
commitba8fcbe2ba0a26cd52dfa9bf40dd2e945e5b298f (patch)
tree629d314c374aaf1c91821213605df6190c7a3382 /numpy/array_api/_creation_functions.py
parentef04f59d1a5cc7320866c48d75059aa52d390003 (diff)
downloadnumpy-ba8fcbe2ba0a26cd52dfa9bf40dd2e945e5b298f.tar.gz
change from_dlpack to _dlpack, remove unused header
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
-rw-r--r--numpy/array_api/_creation_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/array_api/_creation_functions.py b/numpy/array_api/_creation_functions.py
index e36807468..c3644ac2c 100644
--- a/numpy/array_api/_creation_functions.py
+++ b/numpy/array_api/_creation_functions.py
@@ -151,7 +151,7 @@ def eye(
return Array._new(np.eye(n_rows, M=n_cols, k=k, dtype=dtype))
-def from_dlpack(x: object, /) -> Array:
+def _from_dlpack(x: object, /) -> Array:
# Note: dlpack support is not yet implemented on Array
raise NotImplementedError("DLPack support is not yet implemented")