-
-
Notifications
You must be signed in to change notification settings - Fork 141
Add npt.NDArray[np.uint64] to IndexType? #508
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
Comments
The problem here is that So I don't think the issue is that But maybe there is something else you are trying to do here that we need to address. |
@Dr-Irv yeah, I tried
and the following error with
|
@ischurov can you see which version of numpy you have installed? I'm unable to reproduce with numpy 1.23.5 |
I have numpy version 1.24.1. Indeed, it is not reproducible on 1.23.5. |
OK. Right now, we have a pandas issue with numpy 1.24 that causes one of our tests to fail when we run the code. So we have pinned our tests to 1.23.5. I'm going to change the title of the issue to reflect this is compatibility with 1.24.1 |
So I'm doing a PR to address this and to allow our tests to deal with numpy 1.24.1. It turns out that |
Currently,
IndexType
containsnp_ndarray_int64
(a.k.a.npt.NDArray[np.int64]
). Is that possible to addnpt.NDArray[np.uint64]
toIndexType
as well?To Reproduce
mypy
orpyright
).Both.
In
pyright
, the inferred type ofdf2
isSeries[Unkown]
, which is incorrect (should beDataFrame
instead).In
mypy
, it saysPlease complete the following information:
pandas-stubs
: 1.5.2.230105 (build pyhd8ed1ab_2)The text was updated successfully, but these errors were encountered: