Skip to content

Commit

Permalink
build(deps): bump mypy from 1.6.1 to 1.7.1 (#42)
Browse files Browse the repository at this point in the history
Bumps [mypy](https://github.com/python/mypy) from 1.6.1 to 1.7.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>Next release</h2>
<p>Stubgen will now include <code>__all__</code> in its output if it is
in the input file (PR <a
href="https://redirect.github.com/python/mypy/pull/16356">16356</a>).</p>
<h2>Mypy 1.7</h2>
<p>We’ve just uploaded mypy 1.7 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>Using TypedDict for <code>**kwargs</code> Typing</h4>
<p>Mypy now has support for using <code>Unpack[...]</code> with a
TypedDict type to annotate <code>**kwargs</code> arguments enabled by
default. Example:</p>
<pre lang="python"><code># Or 'from typing_extensions import ...'
from typing import TypedDict, Unpack
<p>class Person(TypedDict):
name: str
age: int</p>
<p>def foo(**kwargs: Unpack[Person]) -&gt; None:
...</p>
<p>foo(name=&quot;x&quot;, age=1)  # Ok
foo(name=1)  # Error
</code></pre></p>
<p>The definition of <code>foo</code> above is equivalent to the one
below, with keyword-only arguments <code>name</code> and
<code>age</code>:</p>
<pre lang="python"><code>def foo(*, name: str, age: int) -&gt; None:
    ...
</code></pre>
<p>Refer to <a href="https://peps.python.org/pep-0692/">PEP 692</a> for
more information. Note that unlike in the current version of the PEP,
mypy always treats signatures with <code>Unpack[SomeTypedDict]</code> as
equivalent to their expanded forms with explicit keyword arguments, and
there aren't special type checking rules for TypedDict arguments.</p>
<p>This was contributed by Ivan Levkivskyi back in 2022 (PR <a
href="https://redirect.github.com/python/mypy/pull/13471">13471</a>).</p>
<h4>TypeVarTuple Support Enabled (Experimental)</h4>
<p>Mypy now has support for variadic generics (TypeVarTuple) enabled by
default, as an experimental feature. Refer to <a
href="https://peps.python.org/pep-0646/">PEP 646</a> for the
details.</p>
<p>TypeVarTuple was implemented by Jared Hance and Ivan Levkivskyi over
several mypy releases, with help from Jukka Lehtosalo.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python/mypy/commit/6b3c41838d8e7a39242b6fd035535e2d76eabfc6"><code>6b3c418</code></a>
Update version to 1.7.1 (without +dev)</li>
<li><a
href="https://github.com/python/mypy/commit/c10e17348f2eacbbeae80eb6c10c661c0137d849"><code>c10e173</code></a>
[mypyc] Fix regression with nested functions (<a
href="https://redirect.github.com/python/mypy/issues/16484">#16484</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/e6399d10b0a1cdb104559482fad1b4dc0e2de6ac"><code>e6399d1</code></a>
Fix polymorphic application for callback protocols (<a
href="https://redirect.github.com/python/mypy/issues/16514">#16514</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/661adb756800ecc40fabbe62e9339efd253aff4e"><code>661adb7</code></a>
Fix crash on strict-equality with recursive types (<a
href="https://redirect.github.com/python/mypy/issues/16483">#16483</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/6c8e0cc47c014894ea41621a10f3d1b465322362"><code>6c8e0cc</code></a>
Ignore position if imprecise arguments are matched by name (<a
href="https://redirect.github.com/python/mypy/issues/16471">#16471</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/5c354c41c0fbb74418afcbd30ba822694be28d11"><code>5c354c4</code></a>
Fix missing meet case exposed by len narrowing (<a
href="https://redirect.github.com/python/mypy/issues/16470">#16470</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/88791cabe0521f77b699405154d90f3bb7c6b31b"><code>88791ca</code></a>
Exclude private attributes from override checks (<a
href="https://redirect.github.com/python/mypy/issues/16464">#16464</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/4b5b316beb570bba4c9b7797deb2e6d7df0552d0"><code>4b5b316</code></a>
Special-case unions in polymorphic inference (<a
href="https://redirect.github.com/python/mypy/issues/16461">#16461</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/f862d3ef540c38e7efd2fffd64fc732d6318dfb4"><code>f862d3e</code></a>
Fix crash on Callable self in <strong>call</strong> (<a
href="https://redirect.github.com/python/mypy/issues/16453">#16453</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/fe79a59e44299a3cc8025aa5084e08773c872a54"><code>fe79a59</code></a>
Bump version to 1.7.1+dev</li>
<li>Additional commits viewable in <a
href="https://github.com/python/mypy/compare/v1.6.1...v1.7.1">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.6.1&new-version=1.7.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 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>
  • Loading branch information
dependabot[bot] authored Nov 29, 2023
1 parent 76ca71b commit f463aa1
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f463aa1

Please sign in to comment.