Skip to content

creating stub pyi files automatically from pybind projects #2350

@daltairwalter

Description

@daltairwalter

It would be nice if there was a way to automatically create stub .pyi files for intellisense from pybind11.

I am not sure if this is better done in pybind11 or in an external scraper utility that tries to analyze the dict of the pyd. It seems like there are some advantages if this could be done inside of pybind11 though.

  1. Annotations and comments could be added in the primary source location.
  2. It may be possible to provide more type information.
  3. It could be used on embedded code instead of strictly being possible for pyd's.

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