← All repos

mypy

Optional static typing for Python

linterpythontypecheckertypestyping
Browse cluster: HTML Parsing & Error Tracking
13,742commits
856contributors
11languages

Tech stack & purpose

Mypy is a static type checker for Python that helps developers catch type errors before running their code. By adding type hints following PEP 484 to Python programs, mypy analyzes the code without execution to warn when types are used incorrectly, supporting features like type inference, generics, union types, and structural subtyping. The project is built in Python and uses Sphinx for documentation, and includes mypyc, a compiler that converts typed Python to C extensions. Mypy is developed by the Python community and hosted under the python organization on GitHub.

Languages

Python
87.8%
C
10.6%
C++
1.3%
XSLT
0.1%
Go Template
0.1%
Shell
0.1%
CSS
0.0%
Batchfile
0.0%
Emacs Lisp
0.0%
Makefile
0.0%
Dockerfile
0.0%

Contributors (top 30 of 856)