Skip to content

TYP: stronger typing in libindex #40465

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 5 commits into from
Mar 17, 2021

Conversation

jbrockmendel
Copy link
Member

and more consistent naming/args for MultiIndex engine.

Preliminary before making index.pyi

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Mar 16, 2021
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @jbrockmendel lgtm

@@ -613,8 +613,8 @@ cdef class BaseMultiIndexCodesEngine:
lab_ints = self._extract_level_codes(target)
return self._base.get_indexer(self, lab_ints)

def get_indexer(self, object target, object values = None,
object method = None, object limit = None) -> np.ndarray:
def get_indexer_with_fill(self, ndarray target, ndarray values,
Copy link
Member

Choose a reason for hiding this comment

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

docstring update for target

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

@simonjayhawkins simonjayhawkins added this to the 1.3 milestone Mar 16, 2021
@simonjayhawkins simonjayhawkins merged commit b4c554f into pandas-dev:master Mar 17, 2021
@simonjayhawkins
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the typ-get_indexer branch March 17, 2021 14:08
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
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