From 8a12dc9bf300b7f983515298d2ec4b067533da69 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 9 Sep 2026 18:40:20 +0200 Subject: [PATCH] Fix malformed :obj: cross-reference roles in docstrings The See Also entries for dpnp.argsort and dpnp.histogram_bin_edges used `obj:` instead of `:obj:` (missing the leading colon), so the role was not recognized and rendered as literal "obj:" text in the API docs. Add the missing colon so the cross-references render as proper links. --- dpnp/dpnp_iface_histograms.py | 2 +- dpnp/dpnp_iface_sorting.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dpnp/dpnp_iface_histograms.py b/dpnp/dpnp_iface_histograms.py index 53a4239e7a1c..1ac51d18f4c8 100644 --- a/dpnp/dpnp_iface_histograms.py +++ b/dpnp/dpnp_iface_histograms.py @@ -574,7 +574,7 @@ def histogram(a, bins=10, range=None, density=None, weights=None): :obj:`dpnp.digitize` : Return the indices of the bins to which each value in input array belongs. :obj:`dpnp.histogram_bin_edges` : Return only the edges of the bins used - by the obj:`dpnp.histogram` function. + by the :obj:`dpnp.histogram` function. Examples -------- diff --git a/dpnp/dpnp_iface_sorting.py b/dpnp/dpnp_iface_sorting.py index 8f6f3e80f0d1..5feffffbc432 100644 --- a/dpnp/dpnp_iface_sorting.py +++ b/dpnp/dpnp_iface_sorting.py @@ -156,7 +156,7 @@ def argsort( :obj:`dpnp.sort` : Return a sorted copy of an array. :obj:`dpnp.lexsort` : Indirect stable sort with multiple keys. :obj:`dpnp.argpartition` : Indirect partial sort. - :obj:`dpnp.take_along_axis` : Apply ``index_array`` from obj:`dpnp.argsort` + :obj:`dpnp.take_along_axis` : Apply ``index_array`` from :obj:`dpnp.argsort` to an array as if by calling sort. Examples