On Sat, 2023-10-14 at 17:53 +0200, Alexandre Detiste wrote:
> Package: python3-distro-info
> Version: 1.5
> Severity: normal
> 
> Dear Maintainer,
> 
> While trying to validate game-data-packager's annotations, mypy complains:
> 
> $ mypy --strict tools/ppa.py'
> tools/ppa.py:11: error: Skipping analyzing "distro_info": module is 
> installed, but missing library stubs or py.typed marker  [import-untyped]
> tools/ppa.py:11: note: See 
> https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
> 
> 
> After creating some py.typed - the locations _feels_ wrong,
> but I don't know better - mypy will stop complaining:
> 
> ~# mkdir /usr/lib/python3/dist-packages/distro_info
> ~# touch /usr/lib/python3/dist-packages/distro_info/py.typed
> 
> $ mypy --strict tools/ppa.py 
> Success: no issues found in 1 source file

Thanks for the report. https://peps.python.org/pep-0561/ does not really
tell how to work with py_modules. Since /usr/lib/python3/dist-
packages/distro_info/py.typed works, I'll put the marker there.

-- 
Benjamin Drung
Debian & Ubuntu Developer

Reply via email to