Open
Description
According to spec, Literal[X, Y]
should be treated as Union[Literal[X], Literal[Y]
, which means nested Literal
s should be supported by type checkers.
Hence raising Y062
for cases like Literal[1, Literal[2, 1]]
would make sense I believe.