Suggest a tool

mypy

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

What mypy is

mypy is a static type checker for Python. It reads PEP 484 type hints and reports code that uses those types incorrectly, without executing the program. Type hints do not change runtime behaviour, and the Python interpreter still runs code that mypy flags. It is designed for gradual typing, so annotations can be added over time with dynamic typing as a fallback. Its type system includes inference, generics, callable, tuple and union types, and structural subtyping. It runs from the command line. A daemon mode, dmypy, gives incremental updates on large code bases. Editor integrations exist for VS Code, Vim, Emacs, Sublime Text, PyCharm and IDLE, plus a pre-commit hook.

Written from the project's README, read , and its documentation (see sources).

Category
Code quality and static analysis
License
MIT
Language
Python
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars20,6481
Forks3,3101
Open issues and PRs3,2271
Contributors8691
Commits in the last 90 days1361
Last commit2026-09-221
Last releasev2.3.1, 2026-08-151
Fetched

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

Status

activeLast commit within 90 days of the fetch date.

Computed from the last commit date and the archive flag on the fetch date. See the status rules.

Alternatives

Listed code quality and static analysis tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from mypy's, with its source. See also mypy alternatives.

Comparisons

How to install

python3 -m pip install -U mypy
From README, read .

Questions

Is mypy open source?

Yes. mypy is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.

Is mypy maintained?

On 2026-09-22, the last commit to the default branch was on 2026-09-22, so the listed status is active. Rule: Last commit within 90 days of the fetch date.

How many GitHub stars does mypy have?

20,648 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.

What language is mypy written in?

The repository's primary language, as reported by the GitHub API, is Python.

How do I install mypy?

The README gives this command: python3 -m pip install -U mypy

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: commits, read
  3. GitHub REST API: tags, read
  4. GitHub REST API: contributors, read
  5. LICENSE file, read
  6. README, read