Skip to content

Update mypy # type: ignore comments according to stricter mypy configs#20272

Merged
rapids-bot[bot] merged 9 commits intorapidsai:mainfrom
mroeschke:ref/cudf/typing3
Oct 23, 2025
Merged

Update mypy # type: ignore comments according to stricter mypy configs#20272
rapids-bot[bot] merged 9 commits intorapidsai:mainfrom
mroeschke:ref/cudf/typing3

Conversation

@mroeschke
Copy link
Copy Markdown
Contributor

@mroeschke mroeschke commented Oct 15, 2025

Description

Enables the mypy rules

  • enable_error_code: ignore-without-code
  • warn_unused_ignores = true

To remove or update our current # type: ignore comments with stricter mypy configurations

Checklist

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

@mroeschke mroeschke self-assigned this Oct 15, 2025
@mroeschke mroeschke added the Python Affects Python cuDF API. label Oct 15, 2025
@mroeschke mroeschke requested review from a team as code owners October 15, 2025 18:54
@mroeschke mroeschke added the improvement Improvement / enhancement to an existing function label Oct 15, 2025
@mroeschke mroeschke requested a review from bdice October 15, 2025 18:54
@mroeschke mroeschke added the non-breaking Non-breaking change label Oct 15, 2025
@github-actions github-actions Bot added cudf.pandas Issues specific to cudf.pandas cudf-polars Issues specific to cudf-polars labels Oct 15, 2025
@GPUtester GPUtester moved this to In Progress in cuDF Python Oct 15, 2025
@mroeschke mroeschke changed the title Enable mypy enable_error_code: ignore-without-code Update mypy # type: ignore comments according to stricter mypy configs Oct 17, 2025
@mroeschke mroeschke changed the base branch from main to branch-25.12 October 20, 2025 23:06
@mroeschke mroeschke changed the base branch from branch-25.12 to main October 20, 2025 23:06
Copy link
Copy Markdown
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Approving packaging changes.

@mroeschke
Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot Bot merged commit 6cb91d2 into rapidsai:main Oct 23, 2025
258 of 261 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in cuDF Python Oct 23, 2025
@mroeschke mroeschke deleted the ref/cudf/typing3 branch October 23, 2025 17:57
rapids-bot Bot pushed a commit that referenced this pull request Nov 12, 2025
#19072 made a lot of the necessary fixes, but polars was not actually added to the pre-commit mypy environment so we haven't been checking since then. As a result, some new issues have crept in, and #20272 removed various ignores that are required for polars type safety but mypy didn't know that without polars available.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - GALI PREM SAGAR (https://github.com/galipremsagar)
  - Bradley Dice (https://github.com/bdice)
  - Tom Augspurger (https://github.com/TomAugspurger)
  - Matthew Murray (https://github.com/Matt711)

URL: #20563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cudf.pandas Issues specific to cudf.pandas 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

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants