ramonhagenaars/nptyping

typing issue

Opened this issue · 0 comments

a numpy-array/vector of entry type: np.float should also be a valid np.array of entry type object. See the following code

import numpy as np
from nptyping import NDArray
from typing import Any

vec_f_1n = NDArray[(Any,), object]

vec = np.ones(shape = (33,))

print(isinstance(vec, vec_f_1n)) # will be 'False' but i expect True
print(isinstance(vec[0], object)) # 'True' as i expect