Skip to content

Commit

Permalink
build(deps): bump mypy from 1.5.1 to 1.6.1 (#32)
Browse files Browse the repository at this point in the history
Bumps [mypy](https://github.com/python/mypy) from 1.5.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>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>
<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]) -&gt;
Callable[[str, T, S], None]: ...
def g(*x: int) -&gt; None: ...
<p>&lt;/tr&gt;&lt;/table&gt;
</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.5.1...v1.6.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.5.1&new-version=1.6.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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Nov 1, 2023
1 parent 9d3d097 commit 88f2d77
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
58 changes: 29 additions & 29 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ generate-safeds-stubs = "safeds_stubgen.main:main"

[tool.poetry.dependencies]
python = "^3.11"
mypy = "^1.5.1"
mypy = "^1.6.1"
docstring-parser = "^0.15"
syrupy = "^4.5.0"

Expand Down

0 comments on commit 88f2d77

Please sign in to comment.