summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-03-10 18:14:42 +0200
committerGitHub <noreply@github.com>2022-03-10 18:14:42 +0200
commit3135e1f2a3feb318295e780823d5436d1a9224f0 (patch)
tree199608e3d6f0c683003ad82384f5507a3d8dc48b /numpy/array_api/_creation_functions.py
parentfa0881fe14ab735c4ac1822767cc2f024f650130 (diff)
parent586d675040977574c81bfadd9b1304e056a040c5 (diff)
downloadnumpy-3135e1f2a3feb318295e780823d5436d1a9224f0.tar.gz
Merge pull request #21145 from tirthasheshpatel/fix-gh20743
MAINT, DOC: make np._from_dlpack public
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 741498ff6..3b014d37b 100644
--- a/numpy/array_api/_creation_functions.py
+++ b/numpy/array_api/_creation_functions.py
@@ -154,7 +154,7 @@ def eye(
def from_dlpack(x: object, /) -> Array:
from ._array_object import Array
- return Array._new(np._from_dlpack(x))
+ return Array._new(np.from_dlpack(x))
def full(