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

Convert indexes.py to use Self for typing #8217

Merged
merged 9 commits into from
Sep 20, 2023

Conversation

max-sixty
Copy link
Collaborator

@max-sixty max-sixty commented Sep 20, 2023

I wanted to do this separately from #8216 , as it's the only one that adds a couple ignores. And given the ratio of impact-to-potential-merge-conflicts, I didn't want to slow the other PR down.

I wanted to do this separately, as it's the only one that adds some casts. And given the ratio of impact-to-potential-merge-conflicts, I didn't want to slow the other PR down, even if it seems to be OK.
Copy link
Collaborator

@headtr1ck headtr1ck left a comment

Choose a reason for hiding this comment

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

Your title says Variable but you have changed the index module ;)

Just a couple minor suggestions

xarray/core/indexes.py Outdated Show resolved Hide resolved
xarray/core/indexes.py Outdated Show resolved Hide resolved
xarray/core/indexes.py Outdated Show resolved Hide resolved
xarray/core/indexes.py Outdated Show resolved Hide resolved
max-sixty and others added 4 commits September 20, 2023 10:28
@max-sixty max-sixty added the plan to merge Final call for comments label Sep 20, 2023
@Illviljan Illviljan changed the title Convert Variable to use Self for typing Convert indexes.py to use Self for typing Sep 20, 2023
xarray/core/indexes.py Outdated Show resolved Hide resolved
@max-sixty max-sixty merged commit 96cf77a into pydata:main Sep 20, 2023
26 checks passed
@max-sixty max-sixty deleted the typing-variable branch September 20, 2023 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments topic-indexing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants