Skip to content

Commit

Permalink
Bump mypy from 1.7.1 to 1.8.0 (#290)
Browse files Browse the repository at this point in the history
Bumps [mypy](https://github.com/python/mypy) from 1.7.1 to 1.8.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.8</h2>
<p>We’ve just uploaded mypy 1.8 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>Type-checking Improvements</h4>
<ul>
<li>Do not intersect types in isinstance checks if at least one is final
(Christoph Tyralla, PR <a
href="https://redirect.github.com/python/mypy/pull/16330">16330</a>)</li>
<li>Detect that <code>@Final</code> class without <code>__bool__</code>
cannot have falsey instances (Ilya Priven, PR <a
href="https://redirect.github.com/python/mypy/pull/16566">16566</a>)</li>
<li>Do not allow <code>TypedDict</code> classes with extra keywords
(Nikita Sobolev, PR <a
href="https://redirect.github.com/python/mypy/pull/16438">16438</a>)</li>
<li>Do not allow class-level keywords for <code>NamedTuple</code>
(Nikita Sobolev, PR <a
href="https://redirect.github.com/python/mypy/pull/16526">16526</a>)</li>
<li>Make imprecise constraints handling more robust (Ivan Levkivskyi, PR
<a
href="https://redirect.github.com/python/mypy/pull/16502">16502</a>)</li>
<li>Fix strict-optional in extending generic TypedDict (Ivan Levkivskyi,
PR <a
href="https://redirect.github.com/python/mypy/pull/16398">16398</a>)</li>
<li>Allow type ignores of PEP 695 constructs (Shantanu, PR <a
href="https://redirect.github.com/python/mypy/pull/16608">16608</a>)</li>
<li>Enable <code>type_check_only</code> support for
<code>TypedDict</code> and <code>NamedTuple</code> (Nikita Sobolev, PR
<a
href="https://redirect.github.com/python/mypy/pull/16469">16469</a>)</li>
</ul>
<h4>Performance Improvements</h4>
<ul>
<li>Add fast path to analyzing special form assignments (Jukka
Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/16561">16561</a>)</li>
</ul>
<h4>Improvements to Error Reporting</h4>
<ul>
<li>Don't show documentation links for plugin error codes (Ivan
Levkivskyi, PR <a
href="https://redirect.github.com/python/mypy/pull/16383">16383</a>)</li>
<li>Improve error messages for <code>super</code> checks and add more
tests (Nikita Sobolev, PR <a
href="https://redirect.github.com/python/mypy/pull/16393">16393</a>)</li>
<li>Add error code for mutable covariant override (Ivan Levkivskyi, PR
<a
href="https://redirect.github.com/python/mypy/pull/16399">16399</a>)</li>
</ul>
<h4>Stubgen Improvements</h4>
<ul>
<li>Preserve simple defaults in function signatures (Ali Hamdan, PR <a
href="https://redirect.github.com/python/mypy/pull/15355">15355</a>)</li>
<li>Include <code>__all__</code> in output (Jelle Zijlstra, PR <a
href="https://redirect.github.com/python/mypy/pull/16356">16356</a>)</li>
<li>Fix stubgen regressions with pybind11 and mypy 1.7 (Chad Dombrova,
PR <a
href="https://redirect.github.com/python/mypy/pull/16504">16504</a>)</li>
</ul>
<h4>Stubtest Improvements</h4>
<ul>
<li>Improve handling of unrepresentable defaults (Jelle Zijlstra, PR <a
href="https://redirect.github.com/python/mypy/pull/16433">16433</a>)</li>
<li>Print more helpful errors if a function is missing from stub (Alex
Waygood, PR <a
href="https://redirect.github.com/python/mypy/pull/16517">16517</a>)</li>
<li>Support <code>@type_check_only</code> decorator (Nikita Sobolev, PR
<a
href="https://redirect.github.com/python/mypy/pull/16422">16422</a>)</li>
<li>Warn about missing <code>__del__</code> (Shantanu, PR <a
href="https://redirect.github.com/python/mypy/pull/16456">16456</a>)</li>
<li>Fix crashes with some uses of <code>final</code> and
<code>deprecated</code> (Shantanu, PR <a
href="https://redirect.github.com/python/mypy/pull/16457">16457</a>)</li>
</ul>
<h4>Fixes to Crashes</h4>
<ul>
<li>Fix crash with type alias to <code>Callable[[Unpack[Tuple[Any,
...]]], Any]</code> (Alex Waygood, PR <a
href="https://redirect.github.com/python/mypy/pull/16541">16541</a>)</li>
<li>Fix crash on TypeGuard in <code>__call__</code> (Ivan Levkivskyi, PR
<a
href="https://redirect.github.com/python/mypy/pull/16516">16516</a>)</li>
<li>Fix crash on invalid enum in method (Ivan Levkivskyi, PR <a
href="https://redirect.github.com/python/mypy/pull/16511">16511</a>)</li>
<li>Fix crash on unimported Any in TypedDict (Ivan Levkivskyi, PR <a
href="https://redirect.github.com/python/mypy/pull/16510">16510</a>)</li>
</ul>
<h4>Documentation Updates</h4>
<ul>
<li>Update soft-error-limit default value to -1 (Sveinung Gundersen, PR
<a
href="https://redirect.github.com/python/mypy/pull/16542">16542</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/3b467509ee29b8f274c035d78a1c241a781eb311"><code>3b46750</code></a>
remove +dev suffix from version</li>
<li><a
href="https://github.com/python/mypy/commit/c9bc833bc8a64e3517a6843bbf982a37ee54f893"><code>c9bc833</code></a>
Fix tests broken by hatchling (<a
href="https://redirect.github.com/python/mypy/issues/16655">#16655</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/60d30e36c49a2753de2d71f7dd50f5143bafd307"><code>60d30e3</code></a>
Fix crash with type alias to <code>Callable[[Unpack[Tuple[Any, ...]]],
Any]</code> (<a
href="https://redirect.github.com/python/mypy/issues/16541">#16541</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/f53f4222bbb12d49612657a48b4f2b77e15402fd"><code>f53f422</code></a>
Allow type ignores of PEP 695 constructs (<a
href="https://redirect.github.com/python/mypy/issues/16608">#16608</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/7c33e7c03444ae748b82163e7b4e1666dfaf94c7"><code>7c33e7c</code></a>
<a href="https://github.com/final"><code>@​final</code></a> class
without <strong>bool</strong> cannot have falsey instances (<a
href="https://redirect.github.com/python/mypy/issues/16566">#16566</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/c224da5c7c414f92ded4b7816d16d5dd4ed32193"><code>c224da5</code></a>
Do not intersect types in isinstance checks if at least one is final (<a
href="https://redirect.github.com/python/mypy/issues/16330">#16330</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/d54cc35a93b1f1bda8f837e0f3ae6f964a1c7feb"><code>d54cc35</code></a>
Change example in test cases with no stubs available (<a
href="https://redirect.github.com/python/mypy/issues/16513">#16513</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/eb1ee973778e3cf719948e1653db9760ea49405d"><code>eb1ee97</code></a>
Update hashes in <code>sync-typeshed.py</code> following recent typeshed
sync (<a
href="https://redirect.github.com/python/mypy/issues/16600">#16600</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/344298e3a7b1a299092c684c11c28e9f4dc44dd9"><code>344298e</code></a>
Revert use of <code>ParamSpec</code> for
<code>functools.wraps</code></li>
<li><a
href="https://github.com/python/mypy/commit/3e5d813372e4fc1899319f31425bfc11c27fddb3"><code>3e5d813</code></a>
Revert typeshed ctypes change</li>
<li>Additional commits viewable in <a
href="https://github.com/python/mypy/compare/v1.7.1...v1.8.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.7.1&new-version=1.8.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>
  • Loading branch information
github-actions[bot] authored Dec 22, 2023
2 parents af8826f + bd0ab09 commit 7577606
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions poetry.lock

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

0 comments on commit 7577606

Please sign in to comment.