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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

janlodewijk
Copy link

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
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

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