--- id: mypy version: "2.3.0" license: MIT license_treatment: permissive maintenance: active --- # mypy — Optional static typing for Python License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install mypy uv add mypy poetry add mypy ## Description mypy logo Mypy: Static Typing for Python ======================================= [![Stable Version](https://img.shields.io/pypi/v/mypy?color=blue)](https://pypi.org/project/mypy/) [![Downloads](https://img.shields.io/pypi/dm/mypy)](https://pypistats.org/packages/mypy) [![Build Status](https://github.com/python/mypy/actions/workflows/test.yml/badge.svg)](https://github.com/python/mypy/actions) [![Documentation Status](https://readthedocs.org/projects/mypy/badge/?version=latest)](https://mypy.readthedocs.io/en/latest/?badge=latest) [![Chat at https://gitter.im/python/typing](https://badges.gitter.im/python/typing.svg)](https://gitter.im/python/typing?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Linting: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) Got a... ## AI interpretation — verify before relying Mypy is a static type checker for Python that detects type errors before runtime by analyzing type hints in your code, helping catch bugs without executing the program. Verdict: Mypy is a mature, actively maintained static type checker (MIT licensed, no known vulnerabilities) with low install friction and broad Python version support. It is a top-1000 PyPI package suitable for development workflows seeking gradual typing adoption and early bug detection. [View on SkillFed](https://skillfed.io/packages/mypy) · [View on PyPI](https://pypi.org/project/mypy/)