mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #10511 from AA-Turner/fix-tilde-literals
Fix ~Literal references
This commit is contained in:
commit
8eeaa98bb4
@ -396,7 +396,7 @@ class PyXrefMixin:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user