# mypy

> Optional static typing for Python

Source: https://talira.ai/catalog/mypy-b1eegf0c
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / type checking](https://talira.ai/categories/developer-tools/type-checking), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Plugins: yes[^3]

mypy is an optional static type checker for [Python](https://talira.ai/catalog/python-tgjs08pq.md) that combines the convenience of dynamic (duck) typing with compile-time type checking. You add type hints to standard Python code, a function at a time if you like, and mypy finds type errors before the code runs; the program still runs on any Python VM with no runtime overhead, and static and dynamic typing can be mixed freely within a module or an expression. It supports gradual typing, generics, protocols and the typing features defined in Python's PEPs, uses the typeshed stubs for the standard library and third-party packages, and runs as a command, a daemon for fast incremental checks, or through editor integrations. The same project also ships mypyc, which compiles type-annotated Python modules to C extensions.

## Links

- Website: https://www.mypy-lang.org/
- GitHub: https://github.com/python/mypy
- Docs: https://mypy.readthedocs.io/en/stable/

## Problems it solves

- catch type errors in my Python code before it runs in production
- add type hints to an existing Python codebase gradually, a module at a time
- check that my Python type annotations are actually correct in CI
- make a large Python codebase easier to refactor without introducing bugs
- type check Python code fast enough to run on every save with a daemon
- compile type-annotated Python modules to C extensions for speed

## Features

- static type checking of standard Python code
- gradual typing: mix static and dynamic typing
- generics, protocols and typing PEP support
- typeshed stubs for the standard library and packages
- mypy daemon (dmypy) for fast incremental checks
- plugin system
- mypyc compiler for type-annotated modules

## Limitations

- mypy needs Python 3.10 or newer to run.[^1]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.26 out of 1.
Signals: backing 0.00, extensibility 0.40.

- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Pyright](https://talira.ai/catalog/pyright-8xnxsfgw.md): Static type checker for Python
- [ty](https://talira.ai/catalog/ty-aw94qs4x.md): An extremely fast Python type checker and language server, written in Rust
- [Pylance](https://talira.ai/catalog/pylance-cv0es80q.md): A performant, feature-rich language server for Python in VS Code
- [Flow](https://talira.ai/catalog/flow-ss3d2chg.md): A static type checker and typed dialect of JavaScript

## Sources

[^1]: https://pypi.org/project/mypy/ (checked 24 Nov 2026)
[^2]: https://github.com/python/mypy/blob/master/LICENSE (checked 24 Nov 2026)
[^3]: https://mypy.readthedocs.io/en/stable/extending_mypy.html (checked 24 Nov 2026)
