Sourced from mypy's changelog.
Mypy Release Notes
Next Release
...
Mypy 1.15
We’ve just uploaded mypy 1.15 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypyYou can read the full documentation for this release on Read the Docs.
Performance Improvements
Mypy is up to 40% faster in some use cases. This improvement comes largely from tuning the performance of the garbage collector. Additionally, the release includes several micro-optimizations that may be impactful for large projects.
Contributed by Jukka Lehtosalo
Mypyc Accelerated Mypy Wheels for ARM Linux
For best performance, mypy can be compiled to C extension modules using mypyc. This makes mypy 3-5x faster than when interpreted with pure Python. We now build and upload mypyc accelerated mypy wheels for
manylinux_aarch64to PyPI, making it easy for Linux users on ARM platforms to realise this speedup -- justpip installthe latest mypy.Contributed by Christian Bundy and Marc Mueller (PR mypy_mypyc-wheels#76, PR mypy_mypyc-wheels#89).
--strict-bytesBy default, mypy treats
bytearrayandmemoryviewvalues as assignable to thebytestype, for historical reasons. Use the--strict-bytesflag to disable this behavior. PEP 688 specified the removal of this special case. The flag will be enabled by default in mypy 2.0.Contributed by Ali Hamdan (PR 18263) and Shantanu Jain (PR 13952).
Improvements to Reachability Analysis and Partial Type Handling in Loops
... (truncated)
9397454
remove +dev from version ahead of final release686b591
remove "unreleased" from 1.15 changelog entrycb4b243
Various small updates to 1.15 changelog (#18599)1a26502
Prepare changelog for 1.15 release (#18583)d4515e4
Fix a few PR links in the changelog (#18586)f83b643
Add object self-type to tuple test fixture (#18592)ebc2cb8
Prevent crash on generic NamedTuple with unresolved typevar bound (#18585)63c251e
empty commit to trigger wheel rebuildc30573e
Fix literal context for ternary expressions (for real) (#18545)23d862d
Fix isinstance with explicit (non generic) type alias (#18512)