-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'numpy._DTypeMeta' object is not subscriptable #756
Comments
Is this an error you see when typing or running code? Which version of Numpy and Python? |
When running the code. It was working fine until yesterday. It's used in tsfeatures. This is our current env: numpy==1.20.0 I've raised a PR for your revision. |
Your numpy is too old for the latest release. The minimum is 1.22.3 now. Which arch version are you trying to use? |
If you are stuck with NumPy < 1.22 then you should really pin arch to be < 7. The reason for this is that NumPy 7+ is build using NumPy 2.0.0+ for the C api. This is only backward compat back to NumPy 1.22.3. |
Closing as answered. No changes needed. |
Hello!
It seems that this typing is not compatible with latest versions of numpy. in typing.py:
NDArray = Union[np.ndarray]
Float64Array = np.ndarray[Any, np.dtype[np.double]] # pragma: no cover <----------
Int64Array = np.ndarray[Any, np.dtype[np.longlong]] # pragma: no cover
Int32Array = np.ndarray[Any, np.dtype[np.intc]] # pragma: no cover
The text was updated successfully, but these errors were encountered: