Skip to content
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

Add more complete type annotations in polars interpreter #15942

Merged

Conversation

wence-
Copy link
Contributor

@wence- wence- commented Jun 6, 2024

Description

We can check this with:

pyright --verifytypes cudf_polars --ignoreexternal

Which reports a "type completeness" score of around 94%. This will
improve once pylibcudf gets type stubs.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@wence- wence- requested review from a team as code owners June 6, 2024 16:03
@wence- wence- requested review from jameslamb, vyasr and bdice June 6, 2024 16:03
@wence-
Copy link
Contributor Author

wence- commented Jun 6, 2024

No functional change intended.

@github-actions github-actions bot added Python Affects Python cuDF API. cudf.polars Issues specific to cudf.polars labels Jun 6, 2024
@wence- wence- added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jun 6, 2024
Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Approving the packaging changes, looks good to me. I'm happy to see us adding a py.typed 😁

@@ -62,8 +62,6 @@ target-version = "py39"
fix = true

[tool.ruff.lint]
# __init__.py must re-export everything it imports
ignore-init-module-imports = false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This option is deprecated in ruff

@wence- wence- force-pushed the wence/fea/polars-more-typing branch from 08fcafb to d623879 Compare June 6, 2024 17:07
We can check this with:

    pyright --verifytypes cudf_polars --ignoreexternal

Which reports a "type completeness" score of around 94%. This will
improve once pylibcudf gets type stubs.
@wence- wence- force-pushed the wence/fea/polars-more-typing branch from d623879 to 019c95a Compare June 6, 2024 17:10
@wence-
Copy link
Contributor Author

wence- commented Jun 6, 2024

/merge

@rapids-bot rapids-bot bot merged commit 3468fa1 into rapidsai:branch-24.08 Jun 6, 2024
69 checks passed
@wence- wence- deleted the wence/fea/polars-more-typing branch June 6, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cudf.polars Issues specific to cudf.polars improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants