python/mypy
Optional static typing for Python observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5017
- days_rel: n/a
- days_push: 8
- n_releases_24m: 0
Adoption not part of the score
20605 stars · 3278 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Mypy is an optional static type checker for Python that validates type hints (PEP 484) in your code. It catches type errors before runtime while allowing gradual migration from dynamic to static typing.
Use cases
- check python code for type errors before running it
- add type hints to an existing python codebase gradually
- catch bugs like passing wrong argument types to functions
- enforce type annotations in ci pipeline
- verify stub files for a python library
- find attribute errors and typos in large python projects
When to choose
- you want compile-time-like type checking for python code
- you are migrating a dynamic python codebase to typed code incrementally
- you need to validate type hints against typeshed stubs
- you want machine-checked documentation via annotations
When to avoid
- you need runtime type validation or enforcement rather than static analysis
- you want a general-purpose linter for style issues rather than type checking
- your code relies heavily on dynamic patterns mypy cannot infer
Facets
library · maturity stable
type-system linter developer-tools developer-tools programming-languages testing python cli cross-platform static-analysis type-checking type-hints pep-484 gradual-typing
3 sources
- readme: https://github.com/python/mypy · fetched 2026-08-28 · 0d5c9e213cee
- homepage: https://www.mypy-lang.org/ · fetched 2026-08-29 · 9d43d9c187a0
- site_page: https://www.mypy-lang.org/about.html · fetched 2026-08-29 · 2e1e26112087
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| python/mypy | main | 77 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem