[wpt-sync] Sync PR 49813 - Bump mypy from 1.11.0 to 1.14.0 in /tools
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox136 fixed)
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 49813 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/49813
Details from upstream follow.
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> wrote:
Bump mypy from 1.11.0 to 1.14.0 in /tools
Bumps mypy from 1.11.0 to 1.14.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>
<p>...</p>
<h2>Mypy 1.14</h2>
<p>We’ve just uploaded mypy 1.14 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>Change to Enum Membership Semantics</h3>
<p>As per the updated <a href="https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members">typing specification for enums</a>,
enum members must be left unannotated.</p>
<pre lang="python"><code>class Pet(Enum):
CAT = 1 # Member attribute
DOG = 2 # Member attribute
<pre><code># New error: Enum members must be left unannotated
WOLF: int = 3species: str # Considered a non-member attribute
</code></pre>
<p></code></pre></p>
<p>In particular, the specification change can result in issues in type stubs (<code>.pyi</code> files), since
historically it was common to leave the value absent:</p>
<pre lang="python"><code># In a type stub (.pyi file)
<p>class Pet(Enum):Change in semantics: previously considered members,
now non-member attributes
CAT: int
DOG: int</p>
<pre><code># Mypy will now issue a warning if it detects thissituation in type stubs:
> Detected enum "Pet" in a type stub with zero
> members. There is a chance this is due to a recent
> change in the semantics of enum membership. If so,
> use
member = value
to mark an enum member,</code></pre>
<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/6f37859612cd8670724c2ee2df21aa691276a9dc"><code>6f37859</code></a> Remove +dev from version for release 1.14</li>
<li><a href="https://github.com/python/mypy/commit/5a6a7548a9ae25c79690108b1dc1aaec559a18de"><code>5a6a754</code></a> Minor updates to 1.14 changelog (<a href="https://redirect.github.com/python/mypy/issues/18310">#18310</a>)</li>
<li><a href="https://github.com/python/mypy/commit/9772d486ada2c198811c34f47be7d0bad44cdbf5"><code>9772d48</code></a> Update changelog for release 1.14 (<a href="https://redirect.github.com/python/mypy/issues/18301">#18301</a>)</li>
<li><a href="https://github.com/python/mypy/commit/92473c8bef8a2969e2a649c6c84b3165ba342b0c"><code>92473c8</code></a> Warn about --follow-untyped-imports (<a href="https://redirect.github.com/python/mypy/issues/18249">#18249</a>)</li>
<li><a href="https://github.com/python/mypy/commit/e6ce8be8a61a4a8c17523a828e800a76331ee4b5"><code>e6ce8be</code></a> PEP 702 (<a href="https://github.com/deprecated"><code>@deprecated</code></a>): descriptors (<a href="https://redirect.github.com/python/mypy/issues/18090">#18090</a>)</li>
<li><a href="https://github.com/python/mypy/commit/5082a221f33e6f2ceb32830f733890a1b21061db"><code>5082a22</code></a> [mypyc] Document optimized bytes ops and additional str ops (<a href="https://redirect.github.com/python/mypy/issues/18242">#18242</a>)</li>
<li><a href="https://github.com/python/mypy/commit/ee19ea7d26ccdda3e0e79ef36aeb98cddb527903"><code>ee19ea7</code></a> [mypyc] Add primitives and specialization for ord() (<a href="https://redirect.github.com/python/mypy/issues/18240">#18240</a>)</li>
<li><a href="https://github.com/python/mypy/commit/cc45bec732d6ccf4f846c5fd40617fed9cc04e8d"><code>cc45bec</code></a> [mypyc] Make exception type check in assertRaises test helper precise (<a href="https://redirect.github.com/python/mypy/issues/18241">#18241</a>)</li>
<li><a href="https://github.com/python/mypy/commit/f51090d053874aed0f3bfdb354e42f641296eaac"><code>f51090d</code></a> Make "deprecated" Note a standard Error, disabled by default (<a href="https://redirect.github.com/python/mypy/issues/18192">#18192</a>)</li>
<li><a href="https://github.com/python/mypy/commit/242873a2e8a1d98762b30fcf7b28a699a230279d"><code>242873a</code></a> Implement flag to allow typechecking of untyped modules (<a href="https://redirect.github.com/python/mypy/issues/17712">#17712</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.11...v1.14.0">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 | ||
Comment 1•2 months ago
|
||
Assignee | ||
Comment 3•1 month ago
|
||
Description
•