Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 19, 2024

Updates the requirements on mypy to permit the latest version.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next release

Mypy 1.12

We’ve just uploaded mypy 1.12 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Support Python 3.12 Syntax for Generics (PEP 695)

Support for the new type parameter syntax introduced in Python 3.12 is now enabled by default, documented, and no longer experimental. It was available through a feature flag in mypy 1.11 as an experimental feature.

This example demonstrates the new syntax:

# Generic function
def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...
reveal_type(f(1))  # Revealed type is 'int'
Generic class
class C[T]:
def init(self, x: T) -> None:
self.x = x
c = C('a')
reveal_type(c.x)  # Revealed type is 'str'
Type alias
type A[T] = C[list[T]]

For more information, refer to the documentation.

These improvements are included:

  • Document Python 3.12 type parameter syntax (Jukka Lehtosalo, PR 17816)
  • Further documentation updates (Jukka Lehtosalo, PR 17826)
  • Allow Self return types with contravariance (Jukka Lehtosalo, PR 17786)
  • Enable new type parameter syntax by default (Jukka Lehtosalo, PR 17798)
  • Generate error if new-style type alias used as base class (Jukka Lehtosalo, PR 17789)
  • Inherit variance if base class has explicit variance (Jukka Lehtosalo, PR 17787)

... (truncated)

Commits

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
mypy [>= 0.971.a, < 0.972]

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 commands and options

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)

Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.11.2...v1.12.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner October 19, 2024 19:21
@jkowalleck jkowalleck merged commit bcb6489 into main Oct 20, 2024
42 checks passed
@dependabot dependabot bot deleted the dependabot/pip/mypy-1.12.0 branch October 20, 2024 11:26
saquibsaifee pushed a commit to saquibsaifee/cyclonedx-python-lib that referenced this pull request Oct 27, 2024
…neDX#716)

Updates the requirements on [mypy](https://github.com/python/mypy) to
permit the latest version.
<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.12</h2>
<p>We’ve just uploaded mypy 1.12 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>
<h3>Support Python 3.12 Syntax for Generics (PEP 695)</h3>
<p>Support for the new type parameter syntax introduced in Python 3.12
is now enabled by default,
documented, and no longer experimental. It was available through a
feature flag in
mypy 1.11 as an experimental feature.</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) -&gt; 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) -&gt; 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>For more information, refer to the <a
href="https://mypy.readthedocs.io/en/latest/generics.html">documentation</a>.</p>
<p>These improvements are included:</p>
<ul>
<li>Document Python 3.12 type parameter syntax (Jukka Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/17816">17816</a>)</li>
<li>Further documentation updates (Jukka Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/17826">17826</a>)</li>
<li>Allow Self return types with contravariance (Jukka Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/17786">17786</a>)</li>
<li>Enable new type parameter syntax by default (Jukka Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/17798">17798</a>)</li>
<li>Generate error if new-style type alias used as base class (Jukka
Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/17789">17789</a>)</li>
<li>Inherit variance if base class has explicit variance (Jukka
Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/17787">17787</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/f2a39b16f00e2b7b1922aa9324c092cabbae57a9"><code>f2a39b1</code></a>
Update version to 1.12.0</li>
<li><a
href="https://github.com/python/mypy/commit/b4ec37acce8e0b47518f62a87710375a5b91afed"><code>b4ec37a</code></a>
Add one more 1.12 changelog item (<a
href="https://redirect.github.com/python/mypy/issues/17936">#17936</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/cc1c679a9296e9f66b8ed54d5aea559829b4fcfb"><code>cc1c679</code></a>
Better handling of generic functions in partial plugin (<a
href="https://redirect.github.com/python/mypy/issues/17925">#17925</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/d65a013f5135f8623fefd706a4badb0498d37a43"><code>d65a013</code></a>
Add latest 1.12 changes to changelog (<a
href="https://redirect.github.com/python/mypy/issues/17921">#17921</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/2e38965fc987fcef4a007eb5637863610e3b324f"><code>2e38965</code></a>
Fix union callees with functools.partial (<a
href="https://redirect.github.com/python/mypy/issues/17903">#17903</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/c5d3673e88b8a27627abf7c4f4816214a10e982f"><code>c5d3673</code></a>
Document ReadOnly (PEP 705) (<a
href="https://redirect.github.com/python/mypy/issues/17905">#17905</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/964a7a5b9b1d93a5aa5c3cf87b2a283f015b217b"><code>964a7a5</code></a>
Make ReadOnly TypedDict items covariant (<a
href="https://redirect.github.com/python/mypy/issues/17904">#17904</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/24bfb341b108d8efce20fc4f6cbae851029f77ed"><code>24bfb34</code></a>
Include CHANGELOG.md in sdists (<a
href="https://redirect.github.com/python/mypy/issues/17882">#17882</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/21d46ed76ead0a0a7e3c4d5ae279c1e9ab57c980"><code>21d46ed</code></a>
documentation for TypeIs (<a
href="https://redirect.github.com/python/mypy/issues/17821">#17821</a>)</li>
<li><a
href="https://github.com/python/mypy/commit/c69294320c6ede89297bc28aa348aaed6909df5b"><code>c692943</code></a>
Improvements to functools.partial of types (<a
href="https://redirect.github.com/python/mypy/issues/17898">#17898</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/python/mypy/compare/v1.11.2...v1.12.0">compare
view</a></li>
</ul>
</details>
<br />

<details>
<summary>Most Recent Ignore Conditions Applied to This Pull
Request</summary>

| Dependency Name | Ignore Conditions |
| --- | --- |
| mypy | [>= 0.971.a, < 0.972] |
</details>

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>
Signed-off-by: Saquib Saifee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants