Skip to content

Add pylibcudf source annotations for stubgen - #23715

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

Add pylibcudf source annotations for stubgen#23715
vyasr wants to merge 2 commits into
NVIDIA:mainfrom
vyasr:codex/pylibcudf-source-annotations-followup

Conversation

@vyasr

@vyasr vyasr commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds source-level Cython annotations that improve the signatures recovered by stubgen-pyx for pylibcudf.

The changes are source-only and are split out from the generated-stubs/pre-commit branch. They annotate public API contracts that are not recoverable from unannotated Cython alone, including stream-like parameters, structural input protocols, concrete and abstract collection contracts, domain enum aliases, constructor/return annotations for Python def/__cinit__ methods, and public parameter names used in generated stubs.

No generated .pyi files or stub-generation hook changes are included here.

Checklist

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

Validation:

  • pre-commit run cython-lint --files $(git diff --name-only -- "*.pyx" "*.pxd")
  • git diff --check
  • build-pylibcudf-python

@copy-pr-bot

copy-pr-bot Bot commented Aug 18, 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 18, 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