Sourced from mypy's changelog.
Mypy Release Notes
Next Release
Mypy 2.1
We’ve just uploaded mypy 2.1.0 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.
librt.vecs: Fast Growable Array Type for Mypyc
The new
librt.vecsmodule provides an efficient growable array typevecthat is optimized for mypyc use. It provides fast, packed arrays with integer and floating point value types, which can be several times faster thanlist, and tens of times faster thanarray.arrayin code compiled using mypyc. It also supports nestedvecobjects and non-value-type items, such asvec[vec[str]].Refer to the documentation for the details.
Contributed by Jukka Lehtosalo.
librt.random: Fast Pseudo-Random Number Generation
The new
librt.randommodule provides fast pseudo-random number generation that is optimized for code compiled using mypyc. It can be 3x to 10x faster than the stdlibrandommodule in compiled code.Refer to the documentation for the details.
Contributed by Jukka Lehtosalo (PR 21433).
Mypyc Improvements
- Enable incremental self-compilation (Vaggelis Danias, PR 21369)
- Make compilation order with multiple files consistent (Piotr Sawicki, PR 21419)
- Fix crash on accessing
StopAsyncIteration(Piotr Sawicki, PR 21406)- Fix incremental compilation with
separateflag (Vaggelis Danias, PR 21299)Fixes to Crashes
... (truncated)
c1c336d
Remove +dev from version74df14b
Add changelog for mypy 2.1 (#21464)022d9bc
Revert "TypeForm: Enable by default (#21262)"8826288
[mypyc] Document librt.random (#21463)3f4067b
Bump librt version to 0.11.0 (#21458)2b1eb58
[mypyc] Enable incremental self-compilation (#21369)8152f4a
Respect file config comments for stale modules (#21444)116d60b
Fix nondeterminism from nonassociativity of overload joins (#21455)6c4af8e
Fix function call message change for small number of args (#21432)4b8fdca
[mypyc] Add librt.random module (#21433)