You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One special case to consider (though an unlikely one) is Literal[1, Literal[1, 1]] where both inner 1s are considered duplicates for the parent Literal and the last 1 is a duplicate within the inner Literal as well
According to spec,
Literal[X, Y]
should be treated asUnion[Literal[X], Literal[Y]
, which means nestedLiteral
s should be supported by type checkers.Hence raising
Y062
for cases likeLiteral[1, Literal[2, 1]]
would make sense I believe.The text was updated successfully, but these errors were encountered: