Skip to content

Commit dd052fc

Browse files
committed
Use Sphinx role explicitly
1 parent 4fcbac2 commit dd052fc

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

doc/reference/exceptions.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,3 @@ Exceptions
6868

6969
.. automodule:: dpnp.exceptions
7070
:no-index:
71-
:members:
72-
:undoc-members:
73-
:show-inheritance:

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-
dpnp.exceptions.DLPackCreationError
256+
:exc:`~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-
dpnp.exceptions.DLPackCreationError
286+
:exc:`~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-
dpnp.exceptions.DLPackCreationError
2237+
:exc:`~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)