1 2 3 4 5
from typing import Literal def f(x: int) -> None: if x == 1 or x == 2: _: Literal[1, 2] = x