Skip to main content
FOSSA Logo
Skip to package details

mypy

PyPI20.7k GitHub stars

v2.4.1 · Oct 2026 · MIT (top-level declared license)

pip install mypy
  • No known CVEs
  • 160.5M downloads/mo
  • 142 versions

Description

Optional static typing for Python

Licenses

Declared license

MIT (top-level declared license of mypy)

Transitive dependency licenses

This package's dependency tree includes MPL-2.0, which may require you to publish changes to that component when you distribute.

LicenseCategoryDependencies
MITPermissive3 of 5
PSF-2.0Permissive1 of 5
MPL-2.0Weak copyleft1 of 5

This view is derived from declared package metadata, and a full FOSSA scan detects licenses that declared metadata misses. Scan free.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.

Need mypy approved? Get the full license and vulnerability report for your codebase. Scan free.

Scan free

Vulnerabilities

No known CVEs across published versions

Version history

Published versions
VersionPublishedLicense
2.4.1Oct 2026MIT
2.4.0Oct 2026
2.3.1Aug 2026
2.3.0Jul 2026
2.2.0Jul 2026
2.1.0May 2026
2.0.0May 2026
1.20.2Apr 2026
1.20.1Apr 2026
1.20.0Mar 2026
1.19.1Dec 2025
1.19.0Nov 2025
1.18.2Sep 2025
1.18.1Sep 2025
1.17.1Jul 2025
1.17.0Jul 2025
1.16.1Jun 2025
1.16.0May 2025
1.15.0Feb 2025
1.14.1Dec 2024
1.14.0Dec 2024
1.13.0Oct 2024
1.12.1Oct 2024
1.12.0Oct 2024
1.11.2Aug 2024
25 older releases
Older published versions
VersionPublishedLicense
1.11.1Jul 2024
1.11.0Jul 2024
1.10.1Jun 2024
1.10.0Apr 2024
1.9.0Mar 2024
1.8.0Dec 2023
1.7.1Nov 2023
1.7.0Nov 2023
1.6.1Oct 2023
1.6.0Oct 2023
1.5.1Aug 2023
1.5.0Aug 2023
1.4.1Jun 2023
1.4.0Jun 2023
1.3.0May 2023
1.2.0Apr 2023
1.1.1Mar 2023
1.0.1Feb 2023
1.0.0Feb 2023
0.991.0Nov 2022
0.990.0Nov 2022
0.982.0Oct 2022
0.981.0Sep 2022
0.971.0Jul 2022
0.961.0Jun 2022

pip install mypy resolves to the 2.x line today. Older major lines may still receive fixes.

Direct dependencies

5 direct dependencies, with no further transitive dependencies.

Direct dependencies
PackageVersion rangeLicense
ast-serialize<1.0.0,>=0.12.1MIT
librt>=0.16.0MIT
mypy-extensions>=1.0.0MIT
pathspec>=1.0.0MPL-2.0
typing-extensions>=4.6.0PSF-2.0

Based on what each package declares in its published metadata. The dependencies your build actually installs can differ, and a FOSSA scan of your project resolves the full tree.

Popularity

Downloads last month
160.5M
Known dependents in this corpus
1,288
GitHub stars
20.7k
OpenSSF score
6.6 / 10

FAQ

What is the latest version of mypy?
The latest version of mypy is 2.4.1, published October 2026.
What license is mypy under?
mypy declares MIT as its top-level declared license. Its dependency tree spans 3 distinct licenses.
Does mypy have known vulnerabilities?
No known CVEs are recorded against published versions of mypy.
How do I install mypy?
Install mypy with pip install mypy.
How do I generate an SBOM that includes mypy?
FOSSA's SBOM generator produces SPDX or CycloneDX output for a codebase that includes mypy. Generate an SPDX or CycloneDX SBOM free.

Dependency graph and package metadata from deps.dev (Google Open Source Insights), used under CC BY 4.0.

Download counts from PyPI Stats, sourced from the Python Software Foundation download statistics. Counts cover the last 180 days and exclude known mirrors.

Repository stars from the GitHub API.

OpenSSF Scorecard results from deps.dev.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.