Fix ~Literal references

This commit is contained in:
Adam Turner 2022-06-02 19:10:11 +01:00
parent ab58bbaed7
commit 3a0232807a

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