Correct-Syntax / py-oiio

Python OpenImageIO (OIIO)
MIT License
18 stars 1 forks source link

.pyi stubfile for code completion #3

Closed pixel-ninja closed 8 months ago

pixel-ninja commented 8 months ago

Thanks for the guide!

I just wanted to add that in my case it was useful to generate a .pyi stub file so that code completion would work properly.

With mypy installed running the following from the oiio folder will produce the pyi file: stubgen -m OpenImageIO -o ./

Correct-Syntax commented 8 months ago

Thanks for the tip. 🎉 I've updated the steps to include this.