Skip to content

Commit 88f2953

Browse files
committed
Use the full path dpnp.exceptions.DLPackCreationError in the docstrings
1 parent c3360fe commit 88f2953

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dpnp/dpnp_array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def __dlpack__(
253253
------
254254
MemoryError
255255
when host memory can not be allocated.
256-
DLPackCreationError
256+
dpnp.exceptions.DLPackCreationError
257257
when array is allocated on a partitioned SYCL device, or with
258258
a non-default context.
259259
BufferError
@@ -283,7 +283,7 @@ def __dlpack_device__(self, /):
283283
284284
Raises
285285
------
286-
DLPackCreationError
286+
dpnp.exceptions.DLPackCreationError
287287
when the ``device_id`` could not be determined.
288288
289289
"""

dpnp/dpnp_iface_arraycreation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2234,7 +2234,7 @@ def from_dlpack(x, /, *, device=None, copy=None):
22342234
if `x` does not implement ``__dlpack__`` method
22352235
ValueError
22362236
if data of the input object resides on an unsupported device
2237-
DLPackCreationError
2237+
dpnp.exceptions.DLPackCreationError
22382238
when `x` is allocated on a partitioned SYCL device, or with
22392239
a non-default context
22402240

0 commit comments

Comments
 (0)