-
-
Notifications
You must be signed in to change notification settings - Fork 144
ENH: Improve typing of some general functions #355
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
Conversation
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.
You added typing for pd.cut()
and pd.qcut()
, but no tests. Do you want to add them here, or maybe handle cut
and qcut
in a separate PR?
@Dr-Irv should be ready for final review |
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.
still some small things to clean up
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.
Code looks OK. ping when green.
@Dr-Irv it is green now. |
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.
Just remembered one more thing based on #289 which hasn't been updated for a while.
pandas-stubs/core/reshape/merge.pyi
Outdated
on: Label | Sequence | AnyArrayLike | None = ..., | ||
left_on: Label | Sequence | AnyArrayLike | None = ..., | ||
right_on: Label | Sequence | AnyArrayLike | None = ..., | ||
how: Literal["left", "right", "outer", "inner", "cross"] = ..., |
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.
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.
Fixed.
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.
Thanks @bashtage for your patience in getting all the changes in!
assert_type()
to assert the type of any return value