The py.typed files in the stactools.core, stactools.cli, and stactools.testing packages are not packaged in the published distribution, thus mypy cannot resolve types for stactools when used as a dependency.
<string>:1: error: Skipping analyzing "stactools.core.io.xml": module is installed, but missing library stubs or py.typed marker [import]
<string>:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
Expected behavior
The output from mypy should instead be:
Success: no issues found in 1 source file
I can achieve this expected behavior by simply creating the missing py.typed file relevant to this example:
Describe the bug
The
py.typed
files in thestactools.core
,stactools.cli
, andstactools.testing
packages are not packaged in the published distribution, thusmypy
cannot resolve types forstactools
when used as a dependency.To reproduce
Steps to reproduce the behavior:
The
mypy
command above outputs the following:Expected behavior
The output from
mypy
should instead be:I can achieve this expected behavior by simply creating the missing
py.typed
file relevant to this example:Afterwards, the above
mypy
command outputs the expected "success" message.