channable / channable/opsqueue
Add typing stubs (`.pyi` files) for PyO3-generated Python definitions
- Lenguaje dominante
- Rust
- Estrellas
- 96
- Forks
- 2
- Merge medio
- 1 h 2 min
- PR fusionados (30 d)
- 2
Descripción
Even with https://github.com/channable/opsqueue/issues/8 resolved, type checkers will treat types that are exclusively defined via C bindings as `Any`. Typing stubs would fix this, but PyO3 currently does not generate them (https://github.com/PyO3/pyo3/issues/5137). Manually maintaining them would be annoying because it'd have to be kept in sync with the Rust definitions of the types, but it could still be valuable as a temporary solution.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by locating the Rust definitions exposed through PyO3 and checking how the generated Python definitions are currently represented. Review PyO3 issue 5137 and the existing type-checking setup, then define which exported types and signatures the stubs must cover. Done means the stubs describe the relevant bindings without leaving those types as Any and are documented as maintainable alongside the Rust definitions.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python, rust
- Área
- developer-experience
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 38/100