Skip to content

Add typing stubs (.pyi files) for PyO3-generated Python definitions #101

Description

@isomorpheme

Even with #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 (PyO3/pyo3#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions