Skip to content

Add pylibcudf source annotations for stub generation - #23673

Draft
vyasr wants to merge 2 commits into
NVIDIA:mainfrom
vyasr:codex/pylibcudf-return-annotations-docs
Draft

Add pylibcudf source annotations for stub generation#23673
vyasr wants to merge 2 commits into
NVIDIA:mainfrom
vyasr:codex/pylibcudf-return-annotations-docs

Conversation

@vyasr

@vyasr vyasr commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add source-level return annotations for pylibcudf APIs where Cython and stubgen-pyx can preserve the intended types
  • document pylibcudf type-stub/source-annotation guidance in the developer guide
  • keep this branch source/docs-only, without generated .pyi replacements or the stubgen pre-commit hook

Notes

This is split out from the generated-stubs work so it can be reviewed independently. The annotations intentionally avoid cpdef container returns involving extension-class element types because current stubgen-pyx output degrades those to object.

Validation

  • pre-commit run --files ... for the touched pylibcudf source annotation files, run inside the cudf devcontainer
  • pre-commit run --files docs/cudf/source/pylibcudf/developer_docs.md, run inside the cudf devcontainer

@copy-pr-bot

copy-pr-bot Bot commented Aug 16, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added Python Affects Python cuDF API. pylibcudf Issues specific to the pylibcudf package labels Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pylibcudf Issues specific to the pylibcudf package Python Affects Python cuDF API.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant