Skip to content

[FEA]: Type stubs / .pyi files for cuda.bindings and cuda.core #1963

@rparolin

Description

@rparolin

Is your feature request related to a problem? Please describe.

The cuda.bindings module is implemented as a C extension, which means type checkers (mypy, pyright) and IDEs (VS Code, PyCharm) cannot introspect the API for autocompletion, inline documentation, or static type checking without explicit type information.

Describe the solution you'd like

Ship PEP 561-compliant type stubs (.pyi files) for cuda.bindings and other public modules. Ideally these would be:

  • Auto-generated alongside the bindings (to stay in sync with the C API)
  • Distributed inline with the package (with a py.typed marker)

Additional context

This has been requested by users in internal Slack channels. Type stubs are on the roadmap for the cuda.bindings track.

Metadata

Metadata

Assignees

Labels

cuda.bindingsEverything related to the cuda.bindings moduleenhancementAny code-related improvementstriageNeeds the team's attention

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions