NVIDIA / NVIDIA/cuda-python

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

Abierto
#1,963 11 comentarios 0 reacciones 1 asignado Ver en GitHub

@mdboom ya está trabajando en esto.

Desde el 7/5/2026.

cuda.bindings enhancement P1 packaging
Lenguaje dominante
Cython
Estrellas
3.4k
Forks
329
Merge medio
1 d 21 h
PR fusionados (30 d)
113

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.