We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1595c9a commit bee41c1Copy full SHA for bee41c1
numpydoc/numpydoc.py
@@ -81,7 +81,7 @@ def matching_pending_xref(node):
81
return (isinstance(node, pending_xref) and
82
node[0].astext() == '[%s]' % ref_text)
83
84
- for xref_node in ref.parent.traverse():
+ for xref_node in ref.parent.traverse(matching_pending_xref):
85
xref_node.replace(xref_node[0], Text('[%s]' % new_text))
86
ref.replace(ref_text, new_text.copy())
87
0 commit comments