example_pystemd.py:1: error: Skipping analyzing "pystemd": module is installed, but missing library stubs or py.typed marker [import-untyped]
example_pystemd.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
Am I doing something wrong? Is mypy doing something wrong? or does this package not fully support typehints?
FWIW
According to https://github.com/python/typing/issues/1333
we might simply need an empty py.typed file in the pystemd folder. I cloned and tested this locally and it seems to work
I'm looking for a little guidance on type checking with mypy. I'm not sure why but I always get errors when using pystemd.
Tested on: /etc/os-release
Using:
Steps to reproduce:
Mypy Output:
Am I doing something wrong? Is mypy doing something wrong? or does this package not fully support typehints?