[wpt-sync] Sync PR 42613 - Bump mypy from 1.4.1 to 1.6.1 in /tools
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(Not tracked)
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 42613 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/42613
Details from upstream follow.
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> wrote:
Bump mypy from 1.4.1 to 1.6.1 in /tools
Bumps mypy from 1.4.1 to 1.6.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>
<h1>Mypy Release Notes</h1>
<h2>Unreleased</h2>
<p>...</p>
<h4>Other Notable Changes and Fixes</h4>
<p>...</p>
<h4>Acknowledgements</h4>
<p>...</p>
<h2>Mypy 1.6</h2>
<p><a href="https://mypy-lang.blogspot.com/2023/10/mypy-16-released.html">Tuesday, 10 October 2023</a></p>
<p>We’ve just uploaded mypy 1.6 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>
<h4>Introduce Error Subcodes for Import Errors</h4>
<p>Mypy now uses the error code import-untyped if an import targets an installed library that doesn’t support static type checking, and no stub files are available. Other invalid imports produce the import-not-found error code. They both are subcodes of the import error code, which was previously used for both kinds of import-related errors.</p>
<p>Use --disable-error-code=import-untyped to only ignore import errors about installed libraries without stubs. This way mypy will still report errors about typos in import statements, for example.</p>
<p>If you use --warn-unused-ignore or --strict, mypy will complain if you use # type: ignore[import] to ignore an import error. You are expected to use one of the more specific error codes instead. Otherwise, ignoring the import error code continues to silence both errors.</p>
<p>This feature was contributed by Shantanu (PR <a href="https://redirect.github.com/python/mypy/pull/15840">15840</a>, PR <a href="https://redirect.github.com/python/mypy/pull/14740">14740</a>).</p>
<h4>Remove Support for Targeting Python 3.6 and Earlier</h4>
<p>Running mypy with --python-version 3.6, for example, is no longer supported. Python 3.6 hasn’t been properly supported by mypy for some time now, and this makes it explicit. This was contributed by Nikita Sobolev (PR <a href="https://redirect.github.com/python/mypy/pull/15668">15668</a>).</p>
<h4>Selective Filtering of --disallow-untyped-calls Targets</h4>
<p>Using --disallow-untyped-calls could be annoying when using libraries with missing type information, as mypy would generate many errors about code that uses the library. Now you can use --untyped-calls-exclude=acme, for example, to disable these errors about calls targeting functions defined in the acme package. Refer to the <a href="https://mypy.readthedocs.io/en/latest/command_line.html#cmdoption-mypy-untyped-calls-exclude">documentation</a> for more information.</p>
<p>This feature was contributed by Ivan Levkivskyi (PR <a href="https://redirect.github.com/python/mypy/pull/15845">15845</a>).</p>
<h4>Improved Type Inference between Callable Types</h4>
<p>Mypy now does a better job inferring type variables inside arguments of callable types. For example, this code fragment now type checks correctly:</p>
<pre lang="python"><code>def f(c: Callable[[T, S], None]) -> Callable[[str, T, S], None]: ...
def g(*x: int) -> None: ...
<p></tr></table>
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python/mypy/commit/9b891fe5a101ecbb818f3f16641ab909f289ba04"><code>9b891fe</code></a> Remove +dev from version</li>
<li><a href="https://github.com/python/mypy/commit/6b6504eb8a96fa6a9c7b8f034803eb9a0444fe86"><code>6b6504e</code></a> Fix crash on ParamSpec unification (for real) (<a href="https://redirect.github.com/python/mypy/issues/16259">#16259</a>)</li>
<li><a href="https://github.com/python/mypy/commit/eb81e63e9dec4dd4c75b307871d1ef9b3e350838"><code>eb81e63</code></a> Fix crash on ParamSpec unification (<a href="https://redirect.github.com/python/mypy/issues/16251">#16251</a>)</li>
<li><a href="https://github.com/python/mypy/commit/45f7a12e558e4a48446af3b36494dcb4045c1028"><code>45f7a12</code></a> Add +dev to version</li>
<li><a href="https://github.com/python/mypy/commit/ac2d56f9145a4e15e7c0d1fbcd9a466ad0cec9a1"><code>ac2d56f</code></a> Remove +dev from version</li>
<li><a href="https://github.com/python/mypy/commit/5b488ab8ad82ce11388a63367a60e1443f359f04"><code>5b488ab</code></a> Optimize Unpack for failures (<a href="https://redirect.github.com/python/mypy/issues/15967">#15967</a>)</li>
<li><a href="https://github.com/python/mypy/commit/4c963c9973d319e145be540ce40637d1f43506cd"><code>4c963c9</code></a> Make PEP 695 constructs give a reasonable error message (<a href="https://redirect.github.com/python/mypy/issues/16013">#16013</a>)</li>
<li><a href="https://github.com/python/mypy/commit/e78df552ebf84c3e89fbc7dab0cbc459a7ca306c"><code>e78df55</code></a> Match note error codes to import error codes (<a href="https://redirect.github.com/python/mypy/issues/16004">#16004</a>)</li>
<li><a href="https://github.com/python/mypy/commit/d3766331e89e4cf9f58d7d094b8df10acf63a0e5"><code>d376633</code></a> Fix mypyc regression with pretty (<a href="https://redirect.github.com/python/mypy/issues/16124">#16124</a>)</li>
<li><a href="https://github.com/python/mypy/commit/00cba138a382f8e64b3bbc291c9a4b2ba25a6cb0"><code>00cba13</code></a> Clear cache when adding --new-type-inference (<a href="https://redirect.github.com/python/mypy/issues/16059">#16059</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.4.1...v1.6.1">compare view</a></li>
</ul>
</details>
<br />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
.
<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>
Assignee | ||
Updated•9 months ago
|
Description
•