TypeAlias
does not work when attribute-accessed from the typing_extensions
package
#12179
Labels
bug
mypy got something wrong
Bug Report
TypeAlias
does not trigger errors inmypy
if accessed from thetyping_extensions
package (rather than being imported directly).To Reproduce
Expected Behavior
Everything below should throw errors in
mypy
:Actual Behavior
The aliases
JKL
andInt
, typed usingtpx.TypeAlias
, do not trigger errors withmypy
:Your Environment
0.931
mypy.ini
(and other config files):3.8.12
The text was updated successfully, but these errors were encountered: