-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: CallableDynamicDoc #46786
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: CallableDynamicDoc #46786
Conversation
Hello @twoertwein! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-05-25 23:36:05 UTC |
pandas/core/indexing.py
Outdated
return self._handle_lowerdim_multi_index_axis0(tup) | ||
# error "_LocationIndexer" has no attribute | ||
# "_handle_lowerdim_multi_index_axis0" | ||
return self._handle_lowerdim_multi_index_axis0( # type: ignore[attr-defined] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was about to make _LocationIndexer an abstract class but a sub-class (_iLocIndexer) does not implement _handle_lowerdim_multi_index_axis0 even though the class is being instantiated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any ideas on how to make flake8&mypy&black accept this line (and the same line later in this file)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using a cast to make flake8&mypy&black happy
@jbrockmendel Could you have a look at |
Thanks @twoertwein |
* TYP: CallableDynamicDoc * using cast * tighten NDFrameIndexerBase * dtype and clarification for _IndexingMixinT Co-authored-by: Matthew Roeschke <[email protected]>
The more tricky parts of #46698.
Adding type annotations to
CallableDynamicDoc
seems to uncover multiple missing type annotations. I'm not very confident in some of the new pyi files (types for cython/c functions).