-
-
Notifications
You must be signed in to change notification settings - Fork 143
Generic type for Indexes #340
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
This did exist in the Microsoft predecessor of these stubs about 10 months ago, but we had to remove it because of various Certainly open to adding it back in and having someone do a PR for that! |
IMO this is arguably one of the most important features that could be added to this module...as I continue to annotate my own code bases and discover gaps in the stubs, one of the recurring themes is the the propagation of |
@jonyscathe #760 will need more time and work but it would address this issue, or? |
I will create a follow-up PR for truediv |
I was considering doing a release with the new generic index. Should I wait for that PR? |
I might have a PR today but I think you can go ahead - truediv/floordif are quite tricky. |
Hi,
We have just moved over to pandas-stubs from data-science-types.
Overall it is vastly superior so I am enjoying being able to remove countless type-ignores that we needed due to the incompleteness of the data-science-types stubs.
However, one thing that is not ideal is that we did have a lot of Indexes with types specified, i.e.,
Index[int]
as data-science-types have their Index class as Generic:class Index(Generic[_T]):
Now with pandas-stubs we are having to remove those index types which isn't the end of the world, but they are nice to have.
If it isn't too hard to get that working, I would definitely appreciate having generic types for Indexes
The text was updated successfully, but these errors were encountered: