-
Notifications
You must be signed in to change notification settings - Fork 980
Make type annotations of ColumnBase.find_and_replace stricter #20259
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.
I wasn't aware before reviewing this PR that ColumnLike
is just an alias for Any
. It might be possible be stricter in other places it's used too.
replacement_col = as_column( | ||
replacement[0], length=len(to_replace_col), dtype=common_type | ||
) | ||
replacement_col = replacement_col.repeat(len(to_replace_col)) |
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.
Is this just because we prefer calling the pylibcudf API over as_column
?
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.
Correct
Yeah I think this annotation was added a placeholder to eventually make stricter than |
/merge |
Description
Towards #20254
Checklist