SIGN IN SIGN UP

chore(deps-dev): bump mypy from 1.17 to 2.3.1 (#3747)

Bumps [mypy](https://github.com/python/mypy) from 1.17 to 2.3.1.
<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>
<h3>Mypy 2.3.1</h3>
<ul>
<li>Fix mypyc crash on double yielding Iterators (Daniël van Noord, PR
<a
href="https://redirect.github.com/python/mypy/pull/21826">21826</a>)</li>
<li>Fix mypyc <code>default_factory</code> for inherited dataclass
(Daniël van Noord, PR <a
href="https://redirect.github.com/python/mypy/pull/21785">21785</a>)</li>
<li>Clear mypyc coroutine env on coroutine completion (Piotr Sawicki, PR
<a
href="https://redirect.github.com/python/mypy/pull/21734">21734</a>)</li>
<li>Fix crash when unpacking return value from overload (Shantanu, PR <a
href="https://redirect.github.com/python/mypy/pull/21830">21830</a>)</li>
</ul>
<h3>Acknowledgements</h3>
<p>Thanks to all mypy contributors who contributed to this release:</p>
<ul>
<li>Agriya Khetarpal</li>
<li>Ethan Sarp</li>
<li>Ivan Levkivskyi</li>
<li>Jingchen Ye</li>
<li>Jukka Lehtosalo</li>
<li>Piotr Sawicki</li>
<li>Shantanu</li>
<li>Tom Bannink</li>
<li>Viktor Szépe</li>
<li>ygale</li>
</ul>
<p>I'd also like to thank my employer, Dropbox, for supporting mypy
development.</p>
<h2>Mypy 2.2</h2>
<p>We've just uploaded mypy 2.2.0 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>Support for Closed TypedDicts (PEP 728)</h3>
<p>Mypy now supports closed TypedDicts as specified in PEP 728. A closed
TypedDict cannot have extra
keys beyond those explicitly defined. This allows the type checker to
determine that certain
operations are safe when they otherwise wouldn't be due to the potential
presence of unknown keys.</p>
<p>You can use the <code>closed</code> keyword argument with
<code>TypedDict</code>:</p>
<pre lang="python"><code>HasName = TypedDict(&quot;HasName&quot;,
{&quot;name&quot;: str})
HasOnlyName = TypedDict(&quot;HasOnlyName&quot;, {&quot;name&quot;:
str}, closed=True)
Movie = TypedDict(&quot;Movie&quot;, {&quot;name&quot;: str,
&quot;year&quot;: int})
<p>movie: Movie = {&quot;name&quot;: &quot;Nimona&quot;,
&quot;year&quot;: 2023}
has_name: HasName = movie  # OK: HasName is open (default)
has_only_name: HasOnlyName = movie # Error: HasOnlyName is closed and
Movie has extra &quot;year&quot; key
&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python/mypy/commit/d642c4478e9e3acbe9233edbe17ffc569a1a778c"><code>d642c44</code></a>
Bump version to 2.3.1</li>
<li><a
href="https://github.com/python/mypy/commit/a39242983d3c2cb85886a1eb6d5869180672784c"><code>a392429</code></a>
[mypyc] Fix crash on double yielding Iterators (<a
href="https://redirect.github.com/python/mypy/issues/21826">#21826</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/4843e7773e7dc8fe3f1fd1319277d6d11cd6cdb3"><code>4843e77</code></a>
[mypyc] Fix <code>default_factory</code> for inherited dataclass (<a
href="https://redirect.github.com/python/mypy/issues/21785">#21785</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/14f5df93ed8d1be4f4cc9c447eb2e6e619362e05"><code>14f5df9</code></a>
[mypyc] Clear coroutine env on coroutine completion (<a
href="https://redirect.github.com/python/mypy/issues/21734">#21734</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/6dfa06dda6e34912279e498d35a43ba6dc30bfee"><code>6dfa06d</code></a>
Fix crash when unpacking return value from overload (<a
href="https://redirect.github.com/python/mypy/issues/21830">#21830</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/a3857467da126d28b55724e8bb682019df9a503e"><code>a385746</code></a>
Bump version to 2.3.1+dev</li>
<li><a
href="https://github.com/python/mypy/commit/8aabf8435357eaffceca7237f371e293b8168e54"><code>8aabf84</code></a>
Drop +dev from version</li>
<li><a
href="https://github.com/python/mypy/commit/4d8ad2ab5e86c99581b73775f2c00b9b8265b589"><code>4d8ad2a</code></a>
Update changelog for 2.3 release (<a
href="https://redirect.github.com/python/mypy/issues/21728">#21728</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/2c2154672040c52e481f423854d104e6cf172585"><code>2c21546</code></a>
[mypyc] Update documentation of race conditions under free threading (<a
href="https://redirect.github.com/python/mypy/issues/21726">#21726</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/a9f62a3cf98a58a7a2607b7c81695802b39f5edc"><code>a9f62a3</code></a>
[mypyc] Make attribute access memory safe on free-threaded builds (<a
href="https://redirect.github.com/python/mypy/issues/21705">#21705</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/python/mypy/compare/v1.17.0...v2.3.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=uv&previous-version=1.17&new-version=2.3.1)](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 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>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Beckwith <jbeckwith@openai.com>
D
dependabot[bot] committed
0b52c9ecbc2bfe7059a1273674dff7647d414141
Parent: 4f5598c
Committed by GitHub <noreply@github.com> on 8/27/2026, 10:12:37 PM