mypy
18,000Static type checker for Python. Catches mismatched types before runtime.
Maturity tier details
Computed tier: 2A(raw score 5.2). Effective tier: 2A.
Facets:documented_in=0evaluated_on=0integration_surfaces=1.5paper_citations=0recent_commit=2stars=1.7
Source of truth:pipeline/maturity/score.py
Description
mypy is the original gradual-typing checker for Python, reading PEP 484 type hints across a project and reporting type-incompatibility, missing-attribute, and contract-mismatch errors before code runs. It guards against logic errors caused by silent type drift and against fabricated APIs (calls to attributes that do not exist). Configuration lives in `pyproject.toml [tool.mypy]`, which the audit detector now recognises.
Why it's included
Occupies detection × post_generation × fully_autonomous for logic_error and fabrication in the Python lane. The reference implementation of PEP 484; missing it leaves the audit detector unable to recognise the most widely-deployed Python type-checking gate.
Security notes
Standard dev-tool security posture; no special considerations. mypy runs locally and does not execute target code, only parses and walks its AST.
Addresses failure modes
- Logic error — Correct API use, incorrect logic.
- Fabrication — Generating reference to non-existent APIs, packages, or symbols.