LuxCore icon indicating copy to clipboard operation
LuxCore copied to clipboard

Generate pyi for pyluxcore

Open Pyrolistical opened this issue 2 years ago • 1 comments

Python pyi file should be provide along side so/dylib/pyd files to provide typing information. This would make pyluxcore more self documenting.

I tried mypy's stubgen, but the output is pretty bad

There is probably a smarter way to directly generate pyluxcore.pyi from https://github.com/LuxCoreRender/LuxCore/blob/master/src/luxcore/pyluxcore.cpp

In the worse case a pyluxcore.pyi could be hand maintained.

Pyrolistical avatar Apr 19 '23 22:04 Pyrolistical

Could use https://github.com/boostorg/python/issues/277

Pyrolistical avatar Apr 20 '23 04:04 Pyrolistical