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
I am not even sure that type[Literal] is correct :)
fromtypingimportLiteraldefa(x: type[Literal['a']]):
reveal_type(x)
a(str) # Argument 1 to "a" has incompatible type "type[str]"; expected "type[Literal['a']]" [arg-type]
I am not even sure that
type[Literal]
is correct :)https://mypy-play.net/?mypy=latest&python=3.12&gist=6b8a1d7e6f98c64e7f751c58d356bf16
The text was updated successfully, but these errors were encountered: