Skip to content

mypy reports missing library stubs or py.typed marker #179

Closed
@JayBazuzi

Description

@JayBazuzi

To Reproduce:

python -m venv .venv
. ./.venv/bin/activate
python -m pip install mypy approvaltests
echo "import approvaltests" > test.py
mypy test.py

Result:

test.py:1: error: Skipping analyzing "approvaltests": module is installed, but missing library stubs or py.typed marker  [import-untyped]
test.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Fix ideas

Either:

  • Add py.typed files in the appropriate locations
  • Generate library stubs

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