Sourced from mypy's changelog.
\n\n\nMypy Release Notes
\nNext release
\nMypy 1.13
\nWe\u2019ve just uploaded mypy 1.13 to the Python Package Index (PyPI).\nMypy is a static type checker for Python. You can install it as follows:
\n\npython3 -m pip install -U mypy\nYou can read the full documentation for this release on Read the Docs.
\nNote that unlike typical releases, Mypy 1.13 does not have any changes to type checking semantics\nfrom 1.12.1.
\nImproved performance
\nMypy 1.13 contains several performance improvements. Users can expect mypy to be 5-20% faster.\nIn environments with long search paths (such as environments using many editable installs), mypy\ncan be significantly faster, e.g. 2.2x faster in the use case targeted by these improvements.
\nMypy 1.13 allows use of the
\norjsonlibrary for handling the cache instead of the stdlibjson,\nfor improved performance. You can ensure the presence oforjsonusing thefaster-cacheextra:\npython3 -m pip install -U mypy[faster-cache]\nMypy may depend on
\norjsonby default in the future.These improvements were contributed by Shantanu.
\nList of changes:
\n\n
\n- Significantly speed up file handling error paths (Shantanu, PR 17920)
\n- Use fast path in modulefinder more often (Shantanu, PR 17950)
\n- Let mypyc optimise os.path.join (Shantanu, PR 17949)
\n- Make is_sub_path faster (Shantanu, PR 17962)
\n- Speed up stubs suggestions (Shantanu, PR 17965)
\n- Use sha1 for hashing (Shantanu, PR 17953)
\n- Use orjson instead of json, when available (Shantanu, PR 17955)
\n- Add faster-cache extra, test in CI (Shantanu, PR 17978)
\nAcknowledgements
\nThanks to all mypy contributors who contributed to this release:
\n\n
\n- Shantanu Jain
\n- Jukka Lehtosalo
\nMypy 1.12
\nWe\u2019ve just uploaded mypy 1.12 to the Python Package Index (PyPI). Mypy is a static type
\n\n
... (truncated)
\neb31034 Bump version to 1.13.02eeb588 Update changelog for 1.12.1 (#17999)bc0386b Changelog for 1.13 (#18000)5c4d2db Add faster-cache extra, test in CI (#17978)854ad18 Make is_sub_path faster (#17962)50aa4ca Speed up stubs suggestions (#17965)7c27808 Use orjson instead of json, when available (#17955)2cd2406 Use fast path in modulefinder more often (#17950)e20aaee Let mypyc optimise os.path.join (#17949)159974c Use sha1 for hashing (#17953)