mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix ~Literal references
This commit is contained in:
parent
ab58bbaed7
commit
3a0232807a
@ -396,7 +396,7 @@ class PyXrefMixin:
|
|||||||
results.append(self.make_xref(rolename, domain, sub_target,
|
results.append(self.make_xref(rolename, domain, sub_target,
|
||||||
innernode, contnode, env, inliner, location))
|
innernode, contnode, env, inliner, location))
|
||||||
|
|
||||||
if sub_target in ('Literal', 'typing.Literal'):
|
if sub_target in ('Literal', 'typing.Literal', '~typing.Literal'):
|
||||||
in_literal = True
|
in_literal = True
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
Loading…
Reference in New Issue
Block a user