Commit d375c67
authored
chore(deps): Bump mypy from 1.18.1 to 1.18.2 in /packages/@jsii/python-runtime (#4935)
Bumps [mypy](https://github.com/python/mypy) from 1.18.1 to 1.18.2.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/python/mypy/blob/master/CHANGELOG.md">mypy's changelog</a>.</em></p>
<blockquote>
<h2>Mypy 1.18.1</h2>
<p>We’ve just uploaded mypy 1.18.1 to the Python Package Index (<a href="https://pypi.org/project/mypy/">PyPI</a>).
Mypy is a static type checker for Python. This release includes new features, performance
improvements and bug fixes. You can install it as follows:</p>
<pre><code>python3 -m pip install -U mypy
</code></pre>
<p>You can read the full documentation for this release on <a href="http://mypy.readthedocs.io">Read the Docs</a>.</p>
<h3>Mypy Performance Improvements</h3>
<p>Mypy 1.18.1 includes numerous performance improvements, resulting in about 40% speedup
compared to 1.17 when type checking mypy itself. In extreme cases, the improvement
can be 10x or higher. The list below is an overview of the various mypy optimizations.
Many mypyc improvements (discussed in a separate section below) also improve performance.</p>
<p>Type caching optimizations have a small risk of causing regressions. When
reporting issues with unexpected inferred types, please also check if
<code>--disable-expression-cache</code> will work around the issue, as it turns off some of
these optimizations.</p>
<ul>
<li>Improve self check performance by 1.8% (Jukka Lehtosalo, PR <a href="https://redirect.github.com/python/mypy/pull/19768">19768</a>, <a href="https://redirect.github.com/python/mypy/pull/19769">19769</a>, <a href="https://redirect.github.com/python/mypy/pull/19770">19770</a>)</li>
<li>Optimize fixed-format deserialization (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19765">19765</a>)</li>
<li>Use macros to optimize fixed-format deserialization (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19757">19757</a>)</li>
<li>Two additional micro‑optimizations (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19627">19627</a>)</li>
<li>Another set of micro‑optimizations (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19633">19633</a>)</li>
<li>Cache common types (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19621">19621</a>)</li>
<li>Skip more method bodies in third‑party libraries for speed (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19586">19586</a>)</li>
<li>Simplify the representation of callable types (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19580">19580</a>)</li>
<li>Add cache for types of some expressions (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19505">19505</a>)</li>
<li>Use cache for dictionary expressions (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19536">19536</a>)</li>
<li>Use cache for binary operations (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19523">19523</a>)</li>
<li>Cache types of type objects (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19514">19514</a>)</li>
<li>Avoid duplicate work when checking boolean operations (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19515">19515</a>)</li>
<li>Optimize generic inference passes (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19501">19501</a>)</li>
<li>Speed up the default plugin (Jukka Lehtosalo, PRs <a href="https://redirect.github.com/python/mypy/pull/19385">19385</a> and <a href="https://redirect.github.com/python/mypy/pull/19462">19462</a>)</li>
<li>Remove nested imports from the default plugin (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19388">19388</a>)</li>
<li>Micro‑optimize type expansion (Jukka Lehtosalo, PR <a href="https://redirect.github.com/python/mypy/pull/19461">19461</a>)</li>
<li>Micro‑optimize type indirection (Jukka Lehtosalo, PR <a href="https://redirect.github.com/python/mypy/pull/19460">19460</a>)</li>
<li>Micro‑optimize the plugin framework (Jukka Lehtosalo, PR <a href="https://redirect.github.com/python/mypy/pull/19464">19464</a>)</li>
<li>Avoid temporary set creation in subtype checking (Jukka Lehtosalo, PR <a href="https://redirect.github.com/python/mypy/pull/19463">19463</a>)</li>
<li>Subtype checking micro‑optimization (Jukka Lehtosalo, PR <a href="https://redirect.github.com/python/mypy/pull/19384">19384</a>)</li>
<li>Return early where possible in subtype check (Stanislav Terliakov, PR <a href="https://redirect.github.com/python/mypy/pull/19400">19400</a>)</li>
<li>Deduplicate some types before joining (Stanislav Terliakov, PR <a href="https://redirect.github.com/python/mypy/pull/19409">19409</a>)</li>
<li>Speed up type checking by caching argument inference context (Jukka Lehtosalo, PR <a href="https://redirect.github.com/python/mypy/pull/19323">19323</a>)</li>
<li>Optimize binding method self argument type and deprecation checks (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19556">19556</a>)</li>
<li>Keep trivial instance types/aliases during expansion (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19543">19543</a>)</li>
</ul>
<h3>Fixed‑Format Cache (Experimental)</h3>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python/mypy/commit/df05f05555ee62dbdb9960c64cad186172e92be1"><code>df05f05</code></a> remove +dev from version</li>
<li><a href="https://github.com/python/mypy/commit/01a7a1285d03cb7a330359b22cb462aacb5f9720"><code>01a7a12</code></a> Update changelog for 1.18.2 (<a href="https://redirect.github.com/python/mypy/issues/19873">#19873</a>)</li>
<li><a href="https://github.com/python/mypy/commit/ca5abf09f3bfc543ac9c18a364696bc5da20bc03"><code>ca5abf0</code></a> Typeshed cherry-pick: Make type of <code>unitest.mock.Any</code> a subclass of <code>Any</code> (<a href="https://redirect.github.com/python/mypy/issues/1">#1</a>...</li>
<li><a href="https://github.com/python/mypy/commit/9d794b57d9c5b03d61caa3286756c05e0ae3021b"><code>9d794b5</code></a> [mypyc] fix: inappropriate <code>None</code>s in f-strings (<a href="https://redirect.github.com/python/mypy/issues/19846">#19846</a>)</li>
<li><a href="https://github.com/python/mypy/commit/2c0510c84868b6bb42ef0f305b701e530a85c25f"><code>2c0510c</code></a> stubtest: additional guidance on errors when runtime is object.<strong>init</strong> (<a href="https://redirect.github.com/python/mypy/issues/19733">#19733</a>)</li>
<li><a href="https://github.com/python/mypy/commit/2f3f03c3e39e68dbfa3544c01a34f99803b3e1c2"><code>2f3f03c</code></a> Bump version to 1.18.2+dev for point release</li>
<li><a href="https://github.com/python/mypy/commit/76698412bc1f3ca99000d52649acd5a0e06aa71d"><code>7669841</code></a> Fix crash on recursive alias in indirection.py (<a href="https://redirect.github.com/python/mypy/issues/19845">#19845</a>)</li>
<li>See full diff in <a href="https://github.com/python/mypy/compare/v1.18.1...v1.18.2">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>1 parent 3bfb904 commit d375c67
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments