abseil / abseil-py

Abseil Common Libraries (Python)
Apache License 2.0
2.27k stars 246 forks source link

No pyi files from pip package #266

Closed wwwillchen closed 2 months ago

wwwillchen commented 8 months ago

I'm working on a project: https://github.com/google/mesop that uses absl and pyright for Python type-checking. Pyright looks for pyi files to resolve type definition.

For example, the logging __init__.py file does not include type hints, however the pyi does include type hints. I use absl via pip install, however the absl pip package does not include any pyi files. When I inspect the source distribution files from absl's pip page, I do not see any pyi files.

If absl includes pyi files, then it'll make it easier for project consumers to do type-checking.

oprypin commented 2 months ago

absl_py-2.0.0-py3-none-any.whl didn't contain any pyi files but it seems that absl_py-2.1.0-py3-none-any.whl contains them correctly. So this is solved. Let me know if not.