Skip to content

Python: add type stubs #1453

Description

@agarny

By adding type stubs to our Python bindings, full autocompletion and type checking in VSCode, PyCharm, etc. would be possible.

Note that I am not sure how easy it would be to add such type stubs (since we are using SWIG). FWIW, it's dead easy using nanobind (see here; I have just done it for libOpenCOR and I now have autocompletion and type checking in VSCode).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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