Skip to content

Commit

Permalink
Update sphinx/domains/std.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
marxin and AA-Turner committed Apr 25, 2022
1 parent 496fd89 commit a60357e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sphinx/domains/std.py
Expand Up @@ -200,8 +200,7 @@ def handle_signature(self, sig: str, signode: desc_signature) -> str:
args = args[1:]
for part in samp_role.parse(args):
if isinstance(part, nodes.Text):
text = part.astext()
signode += nodes.Text(text, text)
signode += nodes.Text(part.astext())
else:
signode += part
if add_end_bracket:
Expand Down

0 comments on commit a60357e

Please sign in to comment.