void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTestByText(""" from typing_extensions import Literal from typing import TypeVar T = TypeVar('T', Literal["a"], Literal["b"], Literal["c"]) def repeat(x: T, n: int): return [x] * n repeat("c", 2)""") ); }