robot-control-stack icon indicating copy to clipboard operation
robot-control-stack copied to clipboard

Auto Generation of Python Stub Files

Open juelg opened this issue 2 years ago • 0 comments

We should automate the generation of python stub files. These files give linters and type checkers such as mypy the chance to check the types of the C++ bindings and are, thus, important. However, it is cumbersome and error prone to manually create them and to keep them up to date. This matter is also discussed in this pybind11 issue.

The main two options proposed in the mentioned issue are

  • pybind11-stubgen which is a tool to create stub files from pybind bindings. It is not related to pybind itself. Some report problems with more complex binding types.
  • stubgen from mypy roboust tool to generate stub files from binding binaries. It works with all sorts of binaries and not just pybind.

juelg avatar Mar 25 '24 17:03 juelg