Include stub file in wheels for better autocompletion (e.g., in VSCode)
pybind11-stubgen
script is used to generate the .pyi
stubs during the build.
In order to do so, plugging into CMake was needed with a bunch of tricks.
This solution seems to be heavily dependent on scikit-build-core
.
Edited by Anton Joubert