Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps-py): bump the dev group with 3 updates (#499)
Bumps the dev group with 3 updates: [pytest](https://github.com/pytest-dev/pytest), [ruff](https://github.com/astral-sh/ruff) and [mypy](https://github.com/python/mypy). Updates `pytest` from 8.2.2 to 8.3.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pytest/releases">pytest's releases</a>.</em></p> <blockquote> <h2>8.3.1</h2> <h1>pytest 8.3.1 (2024-07-20)</h1> <p>The 8.3.0 release failed to include the change notes and docs for the release. This patch release remedies this. There are no other changes.</p> <h2>8.3.0</h2> <h1>pytest 8.3.0 (2024-07-20)</h1> <h2>New features</h2> <ul> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12231">#12231</a>: Added [--xfail-tb]{.title-ref} flag, which turns on traceback output for XFAIL results.</p> <ul> <li>If the [--xfail-tb]{.title-ref} flag is not given, tracebacks for XFAIL results are NOT shown.</li> <li>The style of traceback for XFAIL is set with [--tb]{.title-ref}, and can be [auto|long|short|line|native|no]{.title-ref}.</li> <li>Note: Even if you have [--xfail-tb]{.title-ref} set, you won't see them if [--tb=no]{.title-ref}.</li> </ul> <p>Some history:</p> <p>With pytest 8.0, [-rx]{.title-ref} or [-ra]{.title-ref} would not only turn on summary reports for xfail, but also report the tracebacks for xfail results. This caused issues with some projects that utilize xfail, but don't want to see all of the xfail tracebacks.</p> <p>This change detaches xfail tracebacks from [-rx]{.title-ref}, and now we turn on xfail tracebacks with [--xfail-tb]{.title-ref}. With this, the default [-rx]{.title-ref}/ [-ra]{.title-ref} behavior is identical to pre-8.0 with respect to xfail tracebacks. While this is a behavior change, it brings default behavior back to pre-8.0.0 behavior, which ultimately was considered the better course of action.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12281">#12281</a>: Added support for keyword matching in marker expressions.</p> <p>Now tests can be selected by marker keyword arguments. Supported values are <code>int</code>{.interpreted-text role="class"}, (unescaped) <code>str</code>{.interpreted-text role="class"}, <code>bool</code>{.interpreted-text role="class"} & <code>None</code>{.interpreted-text role="data"}.</p> <p>See <code>marker examples <marker_keyword_expression_example></code>{.interpreted-text role="ref"} for more information.</p> <p>-- by <code>lovetheguitar</code>{.interpreted-text role="user"}</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12567">#12567</a>: Added <code>--no-fold-skipped</code> command line option.</p> <p>If this option is set, then skipped tests in short summary are no longer grouped by reason but all tests are printed individually with their nodeid in the same way as other statuses.</p> <p>-- by <code>pbrezina</code>{.interpreted-text role="user"}</p> </li> </ul> <h2>Improvements in existing functionality</h2> <ul> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12469">#12469</a>: The console output now uses the "third-party plugins" terminology, replacing the previously established but confusing and outdated reference to <code>setuptools <setuptools:index></code>{.interpreted-text role="std:doc"} -- by <code>webknjaz</code>{.interpreted-text role="user"}.</p> </li> <li> <p><a href="https://redirect.github.com/pytest-dev/pytest/issues/12544">#12544</a>, <a href="https://redirect.github.com/pytest-dev/pytest/issues/12545">#12545</a>: Python virtual environment detection was improved by checking for a <code>pyvenv.cfg</code>{.interpreted-text role="file"} file, ensuring reliable detection on various platforms -- by <code>zachsnickers</code>{.interpreted-text role="user"}.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pytest/commit/de98446075cc07c768387cf64ba497dd75c205de"><code>de98446</code></a> Prepare release version 8.3.1</li> <li><a href="https://github.com/pytest-dev/pytest/commit/bd0a0424037825bc23b9bf299115e92c53a67a9c"><code>bd0a042</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/12636">#12636</a> from pytest-dev/update-release-notes</li> <li><a href="https://github.com/pytest-dev/pytest/commit/664325bc9fd90217f51fe7cc0e9fff2f29a41a15"><code>664325b</code></a> doc/changelog: update 8.3.0 notes</li> <li><a href="https://github.com/pytest-dev/pytest/commit/19d225d0ab0f586a9a1fc878dff871495c12bd06"><code>19d225d</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/12635">#12635</a> from pytest-dev/release-8.3.0</li> <li><a href="https://github.com/pytest-dev/pytest/commit/bc3302850c52ec945eea1b2bbde7ec3b91fc3e44"><code>bc33028</code></a> Prepare release version 8.3.0</li> <li><a href="https://github.com/pytest-dev/pytest/commit/a7d5a8eba9addd119432fa71880b51052a89812f"><code>a7d5a8e</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/12557">#12557</a> from x612skm/maintainence/11771-pypy-3.9-bump</li> <li><a href="https://github.com/pytest-dev/pytest/commit/ced7072bb4f7653ad2f1d0d33639d87e7bc5f358"><code>ced7072</code></a> Add a change note for PR <a href="https://redirect.github.com/pytest-dev/pytest/issues/11771">#11771</a></li> <li><a href="https://github.com/pytest-dev/pytest/commit/d42b76daadb88d993ee74753766e22711a27395f"><code>d42b76d</code></a> Adjust test_errors_in_xfail_skip_expressions for PyPy</li> <li><a href="https://github.com/pytest-dev/pytest/commit/9eee45a7479cf5fa23b79057708a994a3b8d0eee"><code>9eee45a</code></a> Bump PyPy runtime to v3.9 @ GHA</li> <li><a href="https://github.com/pytest-dev/pytest/commit/d489247505a953885a156e61d4473497cbc167ea"><code>d489247</code></a> Fix caching of parameterized fixtures (<a href="https://redirect.github.com/pytest-dev/pytest/issues/12600">#12600</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest/compare/8.2.2...8.3.1">compare view</a></li> </ul> </details> <br /> Updates `ruff` from 0.5.1 to 0.5.4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>0.5.4</h2> <h2>Release Notes</h2> <h3>Rule changes</h3> <ul> <li>[<code>ruff</code>] Rename <code>RUF007</code> to <code>zip-instead-of-pairwise</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12399">#12399</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-builtins</code>] Avoid shadowing diagnostics for <code>@OverRide</code> methods (<a href="https://redirect.github.com/astral-sh/ruff/pull/12415">#12415</a>)</li> <li>[<code>flake8-comprehensions</code>] Insert parentheses for multi-argument generators (<a href="https://redirect.github.com/astral-sh/ruff/pull/12422">#12422</a>)</li> <li>[<code>pydocstyle</code>] Handle escaped docstrings within docstring (<code>D301</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12192">#12192</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix GitHub link to Neovim setup (<a href="https://redirect.github.com/astral-sh/ruff/pull/12410">#12410</a>)</li> <li>Fix <code>output-format</code> default in settings reference (<a href="https://redirect.github.com/astral-sh/ruff/pull/12409">#12409</a>)</li> </ul> <h2>Install ruff 0.5.4</h2> <h3>Install prebuilt binaries via shell script</h3> <pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-installer.sh | sh </code></pre> <h3>Install prebuilt binaries via powershell script</h3> <pre lang="sh"><code>powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-installer.ps1 | iex" </code></pre> <h2>Download ruff 0.5.4</h2> <table> <thead> <tr> <th>File</th> <th>Platform</th> <th>Checksum</th> </tr> </thead> <tbody> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-apple-darwin.tar.gz">ruff-aarch64-apple-darwin.tar.gz</a></td> <td>Apple Silicon macOS</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-x86_64-apple-darwin.tar.gz">ruff-x86_64-apple-darwin.tar.gz</a></td> <td>Intel macOS</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-x86_64-apple-darwin.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-pc-windows-msvc.zip">ruff-aarch64-pc-windows-msvc.zip</a></td> <td>ARM64 Windows</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-pc-windows-msvc.zip.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-i686-pc-windows-msvc.zip">ruff-i686-pc-windows-msvc.zip</a></td> <td>x86 Windows</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-i686-pc-windows-msvc.zip.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-x86_64-pc-windows-msvc.zip">ruff-x86_64-pc-windows-msvc.zip</a></td> <td>x64 Windows</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-x86_64-pc-windows-msvc.zip.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-unknown-linux-gnu.tar.gz">ruff-aarch64-unknown-linux-gnu.tar.gz</a></td> <td>ARM64 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-i686-unknown-linux-gnu.tar.gz">ruff-i686-unknown-linux-gnu.tar.gz</a></td> <td>x86 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-i686-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-powerpc64-unknown-linux-gnu.tar.gz">ruff-powerpc64-unknown-linux-gnu.tar.gz</a></td> <td>PPC64 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-powerpc64le-unknown-linux-gnu.tar.gz">ruff-powerpc64le-unknown-linux-gnu.tar.gz</a></td> <td>PPC64LE Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-s390x-unknown-linux-gnu.tar.gz">ruff-s390x-unknown-linux-gnu.tar.gz</a></td> <td>S390x Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-s390x-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-x86_64-unknown-linux-gnu.tar.gz">ruff-x86_64-unknown-linux-gnu.tar.gz</a></td> <td>x64 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-armv7-unknown-linux-gnueabihf.tar.gz">ruff-armv7-unknown-linux-gnueabihf.tar.gz</a></td> <td>ARMv7 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-unknown-linux-musl.tar.gz">ruff-aarch64-unknown-linux-musl.tar.gz</a></td> <td>ARM64 MUSL Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-aarch64-unknown-linux-musl.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-i686-unknown-linux-musl.tar.gz">ruff-i686-unknown-linux-musl.tar.gz</a></td> <td>x86 MUSL Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.5.4/ruff-i686-unknown-linux-musl.tar.gz.sha256">checksum</a></td> </tr> </tbody> </table> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's changelog</a>.</em></p> <blockquote> <h2>0.5.4</h2> <h3>Rule changes</h3> <ul> <li>[<code>ruff</code>] Rename <code>RUF007</code> to <code>zip-instead-of-pairwise</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12399">#12399</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-builtins</code>] Avoid shadowing diagnostics for <code>@OverRide</code> methods (<a href="https://redirect.github.com/astral-sh/ruff/pull/12415">#12415</a>)</li> <li>[<code>flake8-comprehensions</code>] Insert parentheses for multi-argument generators (<a href="https://redirect.github.com/astral-sh/ruff/pull/12422">#12422</a>)</li> <li>[<code>pydocstyle</code>] Handle escaped docstrings within docstring (<code>D301</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12192">#12192</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix GitHub link to Neovim setup (<a href="https://redirect.github.com/astral-sh/ruff/pull/12410">#12410</a>)</li> <li>Fix <code>output-format</code> default in settings reference (<a href="https://redirect.github.com/astral-sh/ruff/pull/12409">#12409</a>)</li> </ul> <h2>0.5.3</h2> <p><strong>Ruff 0.5.3 marks the stable release of the Ruff language server and introduces revamped <a href="https://docs.astral.sh/ruff/editors">documentation</a>, including <a href="https://docs.astral.sh/ruff/editors/setup">setup guides for your editor of choice</a> and <a href="https://docs.astral.sh/ruff/editors/settings">the language server itself</a></strong>.</p> <h3>Preview features</h3> <ul> <li>Formatter: Insert empty line between suite and alternative branch after function/class definition (<a href="https://redirect.github.com/astral-sh/ruff/pull/12294">#12294</a>)</li> <li>[<code>pyupgrade</code>] Implement <code>unnecessary-default-type-args</code> (<code>UP043</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12371">#12371</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-bugbear</code>] Detect enumerate iterations in <code>loop-iterator-mutation</code> (<code>B909</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12366">#12366</a>)</li> <li>[<code>flake8-bugbear</code>] Remove <code>discard</code>, <code>remove</code>, and <code>pop</code> allowance for <code>loop-iterator-mutation</code> (<code>B909</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12365">#12365</a>)</li> <li>[<code>pylint</code>] Allow <code>repeated-equality-comparison</code> for mixed operations (<code>PLR1714</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12369">#12369</a>)</li> <li>[<code>pylint</code>] Ignore <code>self</code> and <code>cls</code> when counting arguments (<code>PLR0913</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12367">#12367</a>)</li> <li>[<code>pylint</code>] Use UTF-8 as default encoding in <code>unspecified-encoding</code> fix (<code>PLW1514</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12370">#12370</a>)</li> </ul> <h3>Server</h3> <ul> <li>Build settings index in parallel for the native server (<a href="https://redirect.github.com/astral-sh/ruff/pull/12299">#12299</a>)</li> <li>Use fallback settings when indexing the project (<a href="https://redirect.github.com/astral-sh/ruff/pull/12362">#12362</a>)</li> <li>Consider <code>--preview</code> flag for <code>server</code> subcommand for the linter and formatter (<a href="https://redirect.github.com/astral-sh/ruff/pull/12208">#12208</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-comprehensions</code>] Allow additional arguments for <code>sum</code> and <code>max</code> comprehensions (<code>C419</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12364">#12364</a>)</li> <li>[<code>pylint</code>] Avoid dropping extra boolean operations in <code>repeated-equality-comparison</code> (<code>PLR1714</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12368">#12368</a>)</li> <li>[<code>pylint</code>] Consider expression before statement when determining binding kind (<code>PLR1704</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12346">#12346</a>)</li> </ul> <h3>Documentation</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/53b84ab05460d006b10e035fd6a4ffb62d9b608a"><code>53b84ab</code></a> Cleanup redundant spaces from changelog (<a href="https://redirect.github.com/astral-sh/ruff/issues/12424">#12424</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/3664f85f4505b502a83af5abf01265582471d3f1"><code>3664f85</code></a> Bump version to v0.5.4 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12423">#12423</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2c1926beeb145bcae42ff8d63a5f95e2eb9331d3"><code>2c1926b</code></a> Insert parentheses for multi-argument generators (<a href="https://redirect.github.com/astral-sh/ruff/issues/12422">#12422</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/4bcc96ae514127a1a1bece13f55d0409d98bbf68"><code>4bcc96a</code></a> Avoid shadowing diagnostics for <code>@OverRide</code> methods (<a href="https://redirect.github.com/astral-sh/ruff/issues/12415">#12415</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c0a2b49bacfed394f4668cdf4ec3c97ee72db374"><code>c0a2b49</code></a> Fix the Github link error for Neovim in the setup for editors in the docs. (#...</li> <li><a href="https://github.com/astral-sh/ruff/commit/ca2224862882e73d40ebfe8fe3f99312b013a3e9"><code>ca22248</code></a> Update docs Settings output-format default (<a href="https://redirect.github.com/astral-sh/ruff/issues/12409">#12409</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d8cf8ac2ef26bb630b43b095f61662173b2bac2f"><code>d8cf8ac</code></a> [red-knot] Resolve symbols from <code>builtins.pyi</code> in the stdlib if they cannot b...</li> <li><a href="https://github.com/astral-sh/ruff/commit/1c7b84059e5490b5c0a9f4658975559e5372a6ba"><code>1c7b840</code></a> [red-knot] fix incremental benchmark (<a href="https://redirect.github.com/astral-sh/ruff/issues/12400">#12400</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/f82bb675556097c5d99a62ad6b3b4c19023a96ae"><code>f82bb67</code></a> [red-knot] trace file when inferring types (<a href="https://redirect.github.com/astral-sh/ruff/issues/12401">#12401</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/5f96f69151568da8300fe6d3bf513ae4da3ee6ba"><code>5f96f69</code></a> [red-knot] Fix bug where module resolution would not be invalidated if an ent...</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.5.1...0.5.4">compare view</a></li> </ul> </details> <br /> Updates `mypy` from 1.10.1 to 1.11.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.11</h2> <p>We’ve just uploaded mypy 1.11 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>Support Python 3.12 Syntax for Generics (PEP 695)</h4> <p>Mypy now supports the new type parameter syntax introduced in Python 3.12 (<a href="https://peps.python.org/pep-0695/">PEP 695</a>). This feature is still experimental and must be enabled with the <code>--enable-incomplete-feature=NewGenericSyntax</code> flag, or with <code>enable_incomplete_feature = NewGenericSyntax</code> in the mypy configuration file. We plan to enable this by default in the next mypy feature release.</p> <p>This example demonstrates the new syntax:</p> <pre lang="python"><code># Generic function def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ... <p>reveal_type(f(1)) # Revealed type is 'int'</p> <h1>Generic class</h1> <p>class C[T]: def <strong>init</strong>(self, x: T) -> None: self.x = x</p> <p>c = C('a') reveal_type(c.x) # Revealed type is 'str'</p> <h1>Type alias</h1> <p>type A[T] = C[list[T]] </code></pre></p> <p>This feature was contributed by Jukka Lehtosalo.</p> <h4>Support for <code>functools.partial</code></h4> <p>Mypy now type checks uses of <code>functools.partial</code>. Previously mypy would accept arbitrary arguments.</p> <p>This example will now produce an error:</p> <pre lang="python"><code>from functools import partial </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/dbd5f5cdb62b4dcd1e498c3a91c204b812609fdf"><code>dbd5f5c</code></a> Remove +dev from version for 1.11 release</li> <li><a href="https://github.com/python/mypy/commit/f0a8c6931485364d918f7b4920e5f2832a6be22f"><code>f0a8c69</code></a> Update CHANGELOG for mypy 1.11 (<a href="https://redirect.github.com/python/mypy/issues/17540">#17540</a>)</li> <li><a href="https://github.com/python/mypy/commit/371f7801e9bff13803a228e6cc8dd4cee6c8e472"><code>371f780</code></a> CHANGELOG.md update for 1.11 (<a href="https://redirect.github.com/python/mypy/issues/17539">#17539</a>)</li> <li><a href="https://github.com/python/mypy/commit/2563da0c721a89725bfd009da12dd6378554bfc6"><code>2563da0</code></a> Fix daemon crash on invalid type in TypedDict (<a href="https://redirect.github.com/python/mypy/issues/17495">#17495</a>)</li> <li><a href="https://github.com/python/mypy/commit/d8c67c36d6ecf964dd283de3acffc59d80c8b1fd"><code>d8c67c3</code></a> [release 1.11] Ignore some errors in typeshed (<a href="https://redirect.github.com/python/mypy/issues/17510">#17510</a>)</li> <li><a href="https://github.com/python/mypy/commit/294daffc12ad6f3b02e023bbfb97b6ded58964ff"><code>294daff</code></a> Mention --enable-incomplete-feature=NewGenericSyntax (<a href="https://redirect.github.com/python/mypy/issues/17462">#17462</a>)</li> <li><a href="https://github.com/python/mypy/commit/5c33abf1c2cf6b765529bd70b41d5aa98da08e38"><code>5c33abf</code></a> Further improvements to functools.partial handling (<a href="https://redirect.github.com/python/mypy/issues/17425">#17425</a>)</li> <li><a href="https://github.com/python/mypy/commit/c37d972f8abe0b2a46dbf7bab0898cd2afe6f69c"><code>c37d972</code></a> Fix type comments crash inside generic definitions (<a href="https://redirect.github.com/python/mypy/issues/16849">#16849</a>)</li> <li><a href="https://github.com/python/mypy/commit/d39f0234a18762a9b261a28763c7bea706633ce7"><code>d39f023</code></a> Add changelog entry for 1.10.1 (<a href="https://redirect.github.com/python/mypy/issues/17436">#17436</a>)</li> <li><a href="https://github.com/python/mypy/commit/6c1d8671ce6eaf2c955fa986cbad51d6e6726d5d"><code>6c1d867</code></a> Fix ParamSpec inference against TypeVarTuple (<a href="https://redirect.github.com/python/mypy/issues/17431">#17431</a>)</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.10.1...v1.11">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`. [//]: # (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 <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Agustin Borgna <[email protected]>
- Loading branch information