NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #160 most downloaded on PyPI
Optional static typing for Python
Latest stable
2.4.1
Last release 25 days ago
28 Oct 2026
Release timing varies
gaps range from 8 days to 4 months
Rarely documented
notes for 14 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
17 years old
143 releases · first in 2009
Drag across the ruler to compare, or tap a release to open it.
Process overloads as a whole in two-phase type checking (Ivan Levkivskyi, PR 22231)
Nothing published for this version
Fix mypyc crash on double yielding Iterators (Daniël van Noord, PR 21826)
default_factory for inherited dataclass (Daniël van Noord, PR 21785)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Remove +dev from version
Remove +dev from version
Remove +dev from version
Remove +dev from version
As a reminder, we are planning to enable --local-partial-types by default in mypy 2.0, which
will likely be the next feature release. This will often require at least minor code changes. This
option is implicitly enabled by mypy daemon, so this makes the behavior of daemon and non-daemon
modes consistent.
Note that this release improves the compatibility of --local-partial-types significantly to
make the switch easier (see below for more).
This can also be configured in a mypy configuration file (use False to disable):
local_partial_types = True
For more information, refer to the documentation.
We will also enable --strict-bytes by default in mypy 2.0. This usually requires at most
minor code changes to adopt. For more information, refer to the
documentation.
Finally, --allow-redefinition-new will be renamed to --allow-redefinition. If you want
to continue using the older --allow-redefinition semantics which are less flexible (e.g.
limited support for conditional redefinitions), you can switch to --allow-redefinition-old,
which is currently supported as an alias to the legacy --allow-redefinition behavior.
To use --allow-redefinition in the upcoming mypy 2.0, you can't use --no-local-partial-types.
For more information, refer to the
documentation.
Use WAL with SQLite cache and fix close (Shantanu, PR 21154)
Always disable sync in SQLite cache (Ivan Levkivskyi, PR 21184)
dict.__or__ typeshed change (Ivan Levkivskyi, PR 21186)type[T] in type calls (Shantanu, PR 21174)Any typed variables (Shantanu, PR 21142)--warn-unused-config should not be a strict flag (Ivan Levkivskyi, PR 21139)Remove +dev from version
Remove +dev from version
Fix noncommutative joins with bounded TypeVars (Shantanu, PR 20345)
types.NoneType in match cases (A5rocks, PR 20383)Nothing published for this version
Fix crash on recursive alias (Ivan Levkivskyi, PR 19845)
Nothing published for this version
Retain None as constraints bottom if no bottoms were provided (Stanislav Terliakov, PR 19485)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix crash when showing partially analyzed type in error message (Ivan Levkivskyi, PR 17961)
os.path stubs affecting use of os.PathLike[Any] (Shantanu, PR 17995)Nothing published for this version
Alternative fix for a union-like literal string (Ivan Levkivskyi, PR 17639)
Fix RawExpressionType.accept crash with --cache-fine-grained (Anders Kaseorg, PR 17588)
Nothing published for this version
Fix error reporting on cached run after uninstallation of third party library (Shantanu, PR 17420)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.