Skip to content

Commit 016bcc6

Browse files
chore(deps): Bump mypy from 1.16.1 to 1.17.0 in /dev_requirements (#1012)
Bumps [mypy](https://github.com/python/mypy) from 1.16.1 to 1.17.0. <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> <h1>Mypy Release Notes</h1> <h2>Next Release</h2> <h2>Mypy 1.17</h2> <p>We’ve just uploaded mypy 1.17 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 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>Optionally Check That Match Is Exhaustive</h3> <p>Mypy can now optionally generate an error if a match statement does not match exhaustively, without having to use <code>assert_never(...)</code>. Enable this by using <code>--enable-error-code exhaustive-match</code>.</p> <p>Example:</p> <pre lang="python"><code># mypy: enable-error-code=exhaustive-match <p>import enum</p> <p>class Color(enum.Enum): RED = 1 BLUE = 2</p> <p>def show_color(val: Color) -&gt; None: # error: Unhandled case for values of type &quot;Literal[Color.BLUE]&quot; match val: case Color.RED: print(&quot;red&quot;) </code></pre></p> <p>This feature was contributed by Donal Burns (PR <a href="https://redirect.github.com/python/mypy/pull/19144">19144</a>).</p> <h3>Further Improvements to Attribute Resolution</h3> <p>This release includes additional improvements to how attribute types and kinds are resolved. These fix many bugs and overall improve consistency.</p> <ul> <li>Handle corner case: protocol/class variable/descriptor (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19277">19277</a>)</li> <li>Fix a few inconsistencies in protocol/type object interactions (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19267">19267</a>)</li> <li>Refactor/unify access to static attributes (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19254">19254</a>)</li> <li>Remove inconsistencies in operator handling (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/19250">19250</a>)</li> <li>Make protocol subtyping more consistent (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/18943">18943</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/0260991f6b055110c3df36bd5539d4f4489bf153"><code>0260991</code></a> Update version string</li> <li><a href="https://github.com/python/mypy/commit/3901aa2f9523ce55e08d94c1716028d840398753"><code>3901aa2</code></a> Updates to 1.17 changelog (<a href="https://redirect.github.com/python/mypy/issues/19436">#19436</a>)</li> <li><a href="https://github.com/python/mypy/commit/7d133961a7e759aab84223bf8038b9489daaa93c"><code>7d13396</code></a> Initial changelog for 1.17 release (<a href="https://redirect.github.com/python/mypy/issues/19427">#19427</a>)</li> <li><a href="https://github.com/python/mypy/commit/a182dec997b418b925fe0c28575c50debba0bb3a"><code>a182dec</code></a> Combine the revealed types of multiple iteration steps in a more robust manne...</li> <li><a href="https://github.com/python/mypy/commit/ab4fd57d45b7f81cf281b17b7d3697ac9f79bc15"><code>ab4fd57</code></a> Improve the handling of &quot;iteration dependent&quot; errors and notes in finally cla...</li> <li><a href="https://github.com/python/mypy/commit/09ba1f6488b3e8d91c5204839421c61c306ff252"><code>09ba1f6</code></a> [mypyc] Fix exception swallowing in async try/finally blocks with await (<a href="https://redirect.github.com/python/mypy/issues/19353">#19353</a>)</li> <li><a href="https://github.com/python/mypy/commit/5c65e330b0e4a188d68c04715a90e1f7d9c18df6"><code>5c65e33</code></a> [mypyc] Fix AttributeError in async try/finally with mixed return paths (<a href="https://redirect.github.com/python/mypy/issues/19361">#19361</a>)</li> <li><a href="https://github.com/python/mypy/commit/934ec50744c766522329c604c6908a6ed05affd6"><code>934ec50</code></a> Lessen dmypy suggest path limitations for Windows machines (<a href="https://redirect.github.com/python/mypy/issues/19337">#19337</a>)</li> <li><a href="https://github.com/python/mypy/commit/a4801f928aaadb19f9893fe45af8e69ab6b509d0"><code>a4801f9</code></a> Type ignore comments erroneously marked as unused by dmypy (<a href="https://redirect.github.com/python/mypy/issues/15043">#15043</a>)</li> <li><a href="https://github.com/python/mypy/commit/c3bfa0d6f3ac3cea78cc497a3c44002ea46437a1"><code>c3bfa0d</code></a> Handle corner case: protocol vs classvar vs descriptor (<a href="https://redirect.github.com/python/mypy/issues/19277">#19277</a>)</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.16.1...v1.17.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=pip&previous-version=1.16.1&new-version=1.17.0)](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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent ff94097 commit 016bcc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev_requirements/requirements-type_check.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
iniconfig==2.0.0
99
# via pytest
10-
mypy==1.16.1
10+
mypy==1.17.0
1111
# via -r requirements-type_check.in
1212
mypy-extensions==1.0.0
1313
# via mypy

0 commit comments

Comments
 (0)