void () { doTest("Literal[1, 2, 3, 4, 5]", """ from typing_extensions import Literal a = Literal[1] b = Literal[2, 3] c = Literal[4, 5] d = Literal[b, c] expr = undefined # type: Literal[a, d]"""); doTest("Union[Literal[1, 2, \"foo\", 5], None]", "from typing_extensions import Literal\n" + "expr = undefined # type: Literal[Literal[Literal[1, 2], \"foo\"], 5, None]"); }