From d23b03178a38d8b3f1998814efa407590d1ba787 Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Thu, 8 May 2025 15:17:20 -0700 Subject: [PATCH 1/3] Update common_issues.rst: mention orjson in the Mypy slow section This mostly just copies the verbiage from the release blog post. --- docs/source/common_issues.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/common_issues.rst b/docs/source/common_issues.rst index 96d73e5f0399..7b6587c8ae69 100644 --- a/docs/source/common_issues.rst +++ b/docs/source/common_issues.rst @@ -218,6 +218,12 @@ daemon `, which can speed up incremental mypy runtimes by a factor of 10 or more. :ref:`Remote caching ` can make cold mypy runs several times faster. +Furthermore: as of [mypy 1.13](https://mypy-lang.blogspot.com/2024/10/mypy-113-released.html), mypy allows use of the orjson library for handling the cache instead of the stdlib json, for improved performance. You can ensure the presence of orjson using the faster-cache extra: + + python3 -m pip install -U mypy[faster-cache] + +Mypy may depend on orjson by default in the future. + Types of empty collections -------------------------- From 6cf1a4253214fafe1231f275071933058b4fe27b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 8 May 2025 22:21:29 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/source/common_issues.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/common_issues.rst b/docs/source/common_issues.rst index 7b6587c8ae69..01d9ba5cbc8d 100644 --- a/docs/source/common_issues.rst +++ b/docs/source/common_issues.rst @@ -222,7 +222,7 @@ Furthermore: as of [mypy 1.13](https://mypy-lang.blogspot.com/2024/10/mypy-113-r python3 -m pip install -U mypy[faster-cache] -Mypy may depend on orjson by default in the future. +Mypy may depend on orjson by default in the future. Types of empty collections -------------------------- From 08d45c5100719223d357709ec1927ce5b9f671b6 Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Thu, 8 May 2025 22:27:14 -0400 Subject: [PATCH 3/3] Update common_issues.rst: finish formatting for rst --- docs/source/common_issues.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/common_issues.rst b/docs/source/common_issues.rst index 01d9ba5cbc8d..266d0c5b2c80 100644 --- a/docs/source/common_issues.rst +++ b/docs/source/common_issues.rst @@ -218,7 +218,9 @@ daemon `, which can speed up incremental mypy runtimes by a factor of 10 or more. :ref:`Remote caching ` can make cold mypy runs several times faster. -Furthermore: as of [mypy 1.13](https://mypy-lang.blogspot.com/2024/10/mypy-113-released.html), mypy allows use of the orjson library for handling the cache instead of the stdlib json, for improved performance. You can ensure the presence of orjson using the faster-cache extra: +Furthermore: as of `mypy 1.13 `_, +mypy allows use of the orjson library for handling the cache instead of the stdlib json, for +improved performance. You can ensure the presence of orjson using the faster-cache extra: python3 -m pip install -U mypy[faster-cache]