Skip to content

Commit

Permalink
Fix ~Literal references
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jun 2, 2022
1 parent ab58bba commit 3a02328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/domains/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def make_xrefs(self, rolename: str, domain: str, target: str,
results.append(self.make_xref(rolename, domain, sub_target,
innernode, contnode, env, inliner, location))

if sub_target in ('Literal', 'typing.Literal'):
if sub_target in ('Literal', 'typing.Literal', '~typing.Literal'):
in_literal = True

return results
Expand Down

0 comments on commit 3a02328

Please sign in to comment.