outlines-core icon indicating copy to clipboard operation
outlines-core copied to clipboard

Automatically generate .pyi files

Open torymur opened this issue 11 months ago • 2 comments

Automatically generate python interface files, investigate what's more appropriate:

  • mypy-stubgen
  • pybind11-stubgen
  • custom script

torymur avatar Jan 24 '25 18:01 torymur

Why not maturin?

yvan-sraka avatar Jan 28 '25 18:01 yvan-sraka

(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.

torymur avatar Jan 28 '25 20:01 torymur