It’s a static type checker for Python. It ensures that specified type hints in Python are used properly.

How to install mypy

Errors

Skipping analyzing X: module is installed, but missing library stubs or py.typed marker

https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker I stumbled upon Skipping analyzing "moto": module is installed, but missing library stubs or py.typed marker. The fix for this was to suppress warnings for this package. In pyproject.toml I specified:

[[tool.mypy.overrides]]
module = "moto"
ignore_missing_imports = true

https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file