Skip to content

Commit bee41c1

Browse files
committed
Fix missing argument
1 parent 1595c9a commit bee41c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: numpydoc/numpydoc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def matching_pending_xref(node):
8181
return (isinstance(node, pending_xref) and
8282
node[0].astext() == '[%s]' % ref_text)
8383

84-
for xref_node in ref.parent.traverse():
84+
for xref_node in ref.parent.traverse(matching_pending_xref):
8585
xref_node.replace(xref_node[0], Text('[%s]' % new_text))
8686
ref.replace(ref_text, new_text.copy())
8787

0 commit comments

Comments
 (0)