typeshed

How to generate .pyi files for a compiled Python extension?

How to generate .pyi files for a compiled Python extension? Question: I build a compiled Python extension (.pyd file) with C++ and pybind11. I would like to generate a single Python interface .pyi file for my .pyd file. There are a few similar questions referring to the mypy stubgen module, however, this one produces a …

Total answers: 2