summaryrefslogtreecommitdiff
path: root/numpy/__init__.pyi
diff options
context:
space:
mode:
authorHameer Abbasi <einstein.edison@gmail.com>2021-05-30 11:57:46 +0200
committermattip <matti.picus@gmail.com>2021-11-02 11:34:40 +0200
commite83b8d8044763d36c42d3ab103a5437893fb09d8 (patch)
tree0cf869d5d99a70a77b366a2320dc7a41c0e129ed /numpy/__init__.pyi
parent9ebee26c6c5cd89623d531608eed25a770d01fff (diff)
downloadnumpy-e83b8d8044763d36c42d3ab103a5437893fb09d8.tar.gz
BUG, TST: Device bugfix and test __dl_device__.
Diffstat (limited to 'numpy/__init__.pyi')
-rw-r--r--numpy/__init__.pyi2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi
index c808f0baf..63e723a35 100644
--- a/numpy/__init__.pyi
+++ b/numpy/__init__.pyi
@@ -2449,7 +2449,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
@overload
def __dlpack__(self: NDArray[number[Any]], *, stream: None = ...) -> _PyCapsule: ...
@overload
- def __dlpack_device__(self) -> Tuple[L[1], L[0]]: ...
+ def __dlpack_device__(self) -> Tuple[int, L[0]]: ...
# Keep `dtype` at the bottom to avoid name conflicts with `np.dtype`
@property