Skip to content

TYP: IndexOpsMixin #40642

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
Mar 30, 2021
Merged

TYP: IndexOpsMixin #40642

merged 2 commits into from
Mar 30, 2021

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jbrockmendel jbrockmendel added the Typing type annotations, mypy/pyright type checking label Mar 25, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

small comment

shape = map(len, self.levels)
ids = get_group_index(self.codes, shape, sort=False, xnull=False)

return duplicated_int64(ids, keep)

# error: Cannot override final attribute "_duplicated"
# (previously declared in base class "IndexOpsMixin")
_duplicated = duplicated # type: ignore[misc]
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm this is not inherited?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is inherited, and this is overriding the inherited method

@jreback jreback added this to the 1.3 milestone Mar 30, 2021
@jreback jreback merged commit f625cb4 into pandas-dev:master Mar 30, 2021
vladu pushed a commit to vladu/pandas that referenced this pull request Apr 5, 2021
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
@jbrockmendel jbrockmendel deleted the typ-indexopsmixin branch November 20, 2021 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants