Skip to content

Consolidate cudf-classic dtype validators to their own file and make them stricter#21281

Merged
rapids-bot[bot] merged 11 commits intorapidsai:mainfrom
mroeschke:ref/cudf/dtype_helpers1
Feb 3, 2026
Merged

Consolidate cudf-classic dtype validators to their own file and make them stricter#21281
rapids-bot[bot] merged 11 commits intorapidsai:mainfrom
mroeschke:ref/cudf/dtype_helpers1

Conversation

@mroeschke
Copy link
Copy Markdown
Contributor

Description

python/cudf/cudf/utils/dtypes.py has become an assortment of dtype validation, conversions and constants. In preparation to support nullable pandas types natively (#21229) I think it would be useful to break up this file into the described topic areas as we'll need to add more dtype logic handling soon.

This PR creates python/cudf/cudf/core/dtype/validators.py which should hopefully be followed up by constants.py and conversion.py. I also made the logic in the functions moved to this file more strict as we should be strictly expecting dtype instances.

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 Jan 30, 2026
@mroeschke mroeschke requested a review from a team as a code owner January 30, 2026 23:05
@mroeschke mroeschke requested review from bdice and vyasr January 30, 2026 23:05
@mroeschke mroeschke added Python Affects Python cuDF API. improvement Improvement / enhancement to an existing function labels Jan 30, 2026
@mroeschke mroeschke added the non-breaking Non-breaking change label Jan 30, 2026
@GPUtester GPUtester moved this to In Progress in cuDF Python Jan 30, 2026
@github-actions github-actions Bot added the cudf.pandas Issues specific to cudf.pandas label Feb 3, 2026
@mroeschke
Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot Bot merged commit dc384bc into rapidsai:main Feb 3, 2026
250 of 252 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in cuDF Python Feb 3, 2026
@mroeschke mroeschke deleted the ref/cudf/dtype_helpers1 branch February 3, 2026 21:25
galipremsagar pushed a commit to galipremsagar/cudf that referenced this pull request Feb 3, 2026
…them stricter (rapidsai#21281)

python/cudf/cudf/utils/dtypes.py has become an assortment of dtype validation, conversions and constants. In preparation to support nullable pandas types natively (rapidsai#21229) I think it would be useful to break up this file into the described topic areas as we'll need to add more dtype logic handling soon.

This PR creates `python/cudf/cudf/core/dtype/validators.py` which should hopefully be followed up by `constants.py` and `conversion.py`. I also made the logic in the functions moved to this file more strict as we should be strictly expecting dtype instances.

Authors:
  - Matthew Roeschke (https://github.com/mroeschke)

Approvers:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

URL: rapidsai#21281
betatim added a commit to betatim/cuml that referenced this pull request Feb 4, 2026
rapids-bot Bot pushed a commit to rapidsai/cuml that referenced this pull request Feb 4, 2026
…7762)

See rapidsai/cudf#21281 for cudf changes. This changed what cudf accepts as a valid dtype.

Authors:
  - Tim Head (https://github.com/betatim)

Approvers:
  - Simon Adorf (https://github.com/csadorf)

URL: #7762
dantegd added a commit to dantegd/cuml that referenced this pull request Feb 17, 2026
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 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.

3 participants