I try to use numpy with nptyping
's Array
to do my typehinting.
I tried the following:
enemy_hand: Array[float, 48] = np.zeros(48)
I get an typerror:
Expected Type 'Array[float, Any]', got 'ndarray' instead
as far as I understand from this: https://pypi.org/project/nptyping/ thats how it should look.
from Numpy Typhint with nptyping and Array in PyCharm
No comments:
Post a Comment