mypy
mypy copied to clipboard
(😳) no error when instanciating `dict` type alias with invalid type
from typing import TypeAlias
Values: TypeAlias = dict[str, int]
a = Values(foo="") # no error
No emoji in the title; didn't read
Seems to only affect dicts kwarg constructor. I can't repro with any other type.
It seems to only affect dict: playground