Skip to content

fix NumericIndex for nightly #528

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 2 commits into from
Feb 7, 2023
Merged

Conversation

Dr-Irv
Copy link
Collaborator

@Dr-Irv Dr-Irv commented Feb 6, 2023

Nightly builds were failing because NumericIndex is removed for 2.0, so this allows it to work for 1.5.x, but removes it from testing for 2.0.

Once 2.0 is released, then we can remove NumericIndex in the PYI and tests.

if not PD_LTE_15:
from typing_extensions import TypeAlias

NumericIndex: TypeAlias = pd.Index
Copy link
Member

Choose a reason for hiding this comment

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

from pandas import Index as NumericIndex could be slightly simpler

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea. Fixed in commit 600ab56

@twoertwein twoertwein merged commit 09a61d5 into pandas-dev:main Feb 7, 2023
@twoertwein
Copy link
Member

Thanks @Dr-Irv

@Dr-Irv Dr-Irv deleted the removeNumericIndex branch February 27, 2023 22:18
twoertwein pushed a commit to twoertwein/pandas-stubs that referenced this pull request Apr 1, 2023
* fix NumericIndex for nightly

* import Index as NumericIndex
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