Skip to content

Type tolerance in reindex_like, remove unused function #1107

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

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

MarcoGorelli
Copy link
Member

  • Closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added: Please use assert_type() to assert the type of any return value

@MarcoGorelli MarcoGorelli marked this pull request as ready for review February 7, 2025 11:38
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Have a few changes to make.

@MarcoGorelli
Copy link
Member Author

thanks for your review!

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may have not been clear in my last review, but I think we should remove reindex_like() stub from core/generic.pyi since it is overridden by what is in series.pyi and frame.pyi.

When we do PR's like this one, it allows me to find cases where we have the unnecessary duplication.

So if you make that change, then we should be good to go.

@MarcoGorelli
Copy link
Member Author

ah sorry i thought you meant just the tolerance annotation - have removed the whole thing from generic now

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MarcoGorelli

@Dr-Irv Dr-Irv merged commit a32c467 into pandas-dev:main Feb 7, 2025
10 checks passed
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.

2 participants