I don't know if this is user error or a bug, but when I try to typecheck the following code (basically copied from USERDOC.md) with mypy I get an error:
% mypy error_example.py
error_example.py:5: error: Parameterized generics cannot be used with class or instance checks [misc]
Found 1 error in 1 file (checked 1 source file)
import numpy as np
from typing import Any
from nptyping import NDArray, Shape
print(isinstance(np.random.randn(5, 2), NDArray[Shape["5 coordinates, [x, y]"], Any]))
I don't know if this is user error or a bug, but when I try to typecheck the following code (basically copied from USERDOC.md) with
mypy
I get an error:The code:
The error
Does anyone have any suggestions?
Here's my configuration info:
The full code examples is: