Skip to content

tox complains about missing library stubs or py.typed.marker #362

@Dvergatal

Description

@Dvergatal

Like in subject during testing our code which uses pytss I'm getting this errors:

device/tpm.py:5: error: Skipping analyzing "tpm2_pytss.ESAPI": module is installed, but missing library stubs or py.typed marker
device/tpm.py:5: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
device/tpm.py:6: error: Skipping analyzing "tpm2_pytss.utils": module is installed, but missing library stubs or py.typed marker
device/tpm.py:7: error: Skipping analyzing "tpm2_pytss.types": module is installed, but missing library stubs or py.typed marker
device/tpm.py:8: error: Skipping analyzing "tpm2_pytss.constants": module is installed, but missing library stubs or py.typed marker
Found 4 errors in 1 file (checked 49 source files)
ERROR: InvocationError for command /work/.tox/mypy/bin/mypy . --strict (exited with code 1)

I suppose, that as the link suggests we are missing typing support in tpm2-pytss package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions