void () { doTestNoInjectedText(""" from typing import Literal a: Literal["f<caret>oo"] """); doTestNoInjectedText(""" from typing import Literal a: Literal[42, "f<caret>oo", True] """); doTestNoInjectedText(""" from typing import Literal MyType = Literal[42, "f<caret>oo", True] a: MyType """); doTestNoInjectedText(""" from typing import Literal, TypeAlias MyType: TypeAlias = Literal[42, "f<caret>oo", True] """); doTestNoInjectedText(""" import typing a: typing.Literal["f<caret>oo"] """); }