Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): Bump mypy from 1.11.2 to 1.12.0 in /packages/@jsii/pytho…
…n-runtime (#4665) Bumps [mypy](https://github.com/python/mypy) from 1.11.2 to 1.12.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.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) -> 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>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> </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 /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=pip&previous-version=1.11.2&new-version=1.12.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