Closed laggykiller closed 8 months ago
I don't consider _webp.so to be part of the public API for the project, so I do not currently intend on adding a stub file.
It also seems to be a better practice for us to move all things under site-packages/webp too.
I agree that it would be a good idea to do this, I will make the change. I'm unsure why I didn't do this from the beginning.
Any plan to add stub for the compile
_webp
module? This would add type hints for__init__.py
for ease of developmentYou can see it here: https://github.com/laggykiller/pywebp/blob/webp_pyi/_webp.pyi
Note that
_webp.pyi
is outside ofwebp
directory. This is because the real_webp
module is at the root ofsite-packages
, not insidesite-packages/webp
. If we move_webp
insidesite-packages/webp
directory, we could also move_webp.pyi
intowebp
directory. It also seems to be a better practice for us to move all things undersite-packages/webp
too.