[numpy] mypy does not raise type-var
when NDArray
with incompatible dtype is used as a generic.
#17228
Labels
bug
mypy got something wrong
To Reproduce
Expected Behavior
mypy
should raiseerror: Type argument "A" of "NDArray" must be a subtype of "generic" [type-var]
in both instances.Your Environment
plugins = ["numpy.typing.mypy_plugin"]
The text was updated successfully, but these errors were encountered: