Merge pull request #10511 from AA-Turner/fix-tilde-literals

Fix ~Literal references
This commit is contained in:
Takeshi KOMIYA 2022-06-06 23:12:47 +09:00 committed by GitHub
commit 8eeaa98bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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