Automatically generate .pyi files
Automatically generate python interface files, investigate what's more appropriate:
-
mypy-stubgen -
pybind11-stubgen - custom script
Why not maturin?
(this is about generating interface files from bindings, not bindings)
But I don't have an answer about this preference, it was introduced in the repo before I started working on it: https://github.com/dottxt-ai/outlines-core/commit/909c7f2280ea331afdf91ee46ba0699bb6d00b8d
I personally used maturin in other projects. Currently, we have an issue opened about considering a switch to it: https://github.com/dottxt-ai/outlines-core/issues/105
And after attempting a heavy lifting on https://github.com/dottxt-ai/outlines-core/issues/153 I would strongly consider it too.