Skip to content

Conversation

@Gogowitsch
Copy link
Contributor

@Gogowitsch Gogowitsch commented Nov 12, 2025

This PR is a re-roll of #57256. Instead of targeting the upcoming 3.0 release, this PR makes the type hints available to the 2.3.x branch.

Big thanks for @twoertwein for implementing exactly what I just needed! 🥳

* TYP: misc Index return types

* add IndexT to ignore list
@Gogowitsch Gogowitsch requested a review from Dr-Irv as a code owner November 12, 2025 14:37
@twoertwein
Copy link
Member

@Gogowitsch Typically pandas does not back port type annotations. Consider installing/contributing to pandas-stubs.

@Dr-Irv
Copy link
Contributor

Dr-Irv commented Nov 12, 2025

@Gogowitsch Typically pandas does not back port type annotations. Consider installing/contributing to pandas-stubs.

Also worth mentioning. The types in the pandas source code are meant to assist pandas developers, NOT users. Users should be using pandas-stubs which provides more complete types for the entire public pandas API.

Closing this as a result.

@Dr-Irv Dr-Irv closed this Nov 12, 2025
@Gogowitsch Gogowitsch deleted the better-return-type-for-shift branch November 13, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants