Skip to content
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

TYP: Fix return type of Series.keys() fro list to Index (#1101) #1106

Merged
merged 6 commits into from
Feb 10, 2025

Conversation

janlodewijk
Copy link
Contributor

No description provided.

Imported Index from pandas
and
Changed keys method:
def keys(self) -> Index: ...
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.

can you add a test for this?

Add a test for issue # 1101
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.

We have our tests in a specific pattern, so I have suggested that pattern in my review.

tests/test_series.py Outdated Show resolved Hide resolved
Following the pandas pattern.

Co-authored-by: Irv Lustig <[email protected]>
@janlodewijk
Copy link
Contributor Author

Thank you for your feedback. It's my very first issue and pull request.

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.

You need to set up the pre-commit so things are properly formatted. See the output here:
https://github.com/pandas-dev/pandas-stubs/actions/runs/13202706637/job/36858930373?pr=1106

And instructions here for setting up your local testing environment:
https://github.com/pandas-dev/pandas-stubs/blob/main/docs/setup.md

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.

All looks fine, except you included an extra file that needs to be removed from the PR

test Outdated Show resolved Hide resolved
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 @janlodewijk

@Dr-Irv Dr-Irv merged commit 4976e11 into pandas-dev:main Feb 10, 2025
10 checks passed
@janlodewijk
Copy link
Contributor Author

@Dr-Irv, thank you for your feedback

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