Skip to content

Commit c67fd8f

Browse files
Bump mypy from 1.14.1 to 1.15.0 (#10384)
Bumps [mypy](https://github.com/python/mypy) from 1.14.1 to 1.15.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> <p>...</p> <h2>Mypy 1.15</h2> <p>We’ve just uploaded mypy 1.15 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>Performance Improvements</h3> <p>Mypy is up to 40% faster in some use cases. This improvement comes largely from tuning the performance of the garbage collector. Additionally, the release includes several micro-optimizations that may be impactful for large projects.</p> <p>Contributed by Jukka Lehtosalo</p> <ul> <li>PR <a href="https://redirect.github.com/python/mypy/pull/18306">18306</a></li> <li>PR <a href="https://redirect.github.com/python/mypy/pull/18302">18302</a></li> <li>PR <a href="https://redirect.github.com/python/mypy/pull/18298">18298</a></li> <li>PR <a href="https://redirect.github.com/python/mypy/pull/18299">18299</a></li> </ul> <h3>Mypyc Accelerated Mypy Wheels for ARM Linux</h3> <p>For best performance, mypy can be compiled to C extension modules using mypyc. This makes mypy 3-5x faster than when interpreted with pure Python. We now build and upload mypyc accelerated mypy wheels for <code>manylinux_aarch64</code> to PyPI, making it easy for Linux users on ARM platforms to realise this speedup -- just <code>pip install</code> the latest mypy.</p> <p>Contributed by Christian Bundy and Marc Mueller (PR <a href="https://redirect.github.com/mypyc/mypy_mypyc-wheels/pull/76">mypy_mypyc-wheels#76</a>, PR <a href="https://redirect.github.com/mypyc/mypy_mypyc-wheels/pull/89">mypy_mypyc-wheels#89</a>).</p> <h3><code>--strict-bytes</code></h3> <p>By default, mypy treats <code>bytearray</code> and <code>memoryview</code> values as assignable to the <code>bytes</code> type, for historical reasons. Use the <code>--strict-bytes</code> flag to disable this behavior. <a href="https://peps.python.org/pep-0688">PEP 688</a> specified the removal of this special case. The flag will be enabled by default in <strong>mypy 2.0</strong>.</p> <p>Contributed by Ali Hamdan (PR <a href="https://redirect.github.com/python/mypy/pull/18263">18263</a>) and Shantanu Jain (PR <a href="https://redirect.github.com/python/mypy/pull/13952">13952</a>).</p> <h3>Improvements to Reachability Analysis and Partial Type Handling in Loops</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/9397454fb5aead107461b089e7cf190bf538d20a"><code>9397454</code></a> remove +dev from version ahead of final release</li> <li><a href="https://github.com/python/mypy/commit/686b591a69db216f714ad50698db785f4ac63eb0"><code>686b591</code></a> remove &quot;unreleased&quot; from 1.15 changelog entry</li> <li><a href="https://github.com/python/mypy/commit/cb4b243a5d9e03173e3e7275e5b92b98afaefb60"><code>cb4b243</code></a> Various small updates to 1.15 changelog (<a href="https://redirect.github.com/python/mypy/issues/18599">#18599</a>)</li> <li><a href="https://github.com/python/mypy/commit/1a265024f901399c701a772e8c1f9e6e110f45e6"><code>1a26502</code></a> Prepare changelog for 1.15 release (<a href="https://redirect.github.com/python/mypy/issues/18583">#18583</a>)</li> <li><a href="https://github.com/python/mypy/commit/d4515e4ad3eee6318744c64cf2eab0ea0b5b7562"><code>d4515e4</code></a> Fix a few PR links in the changelog (<a href="https://redirect.github.com/python/mypy/issues/18586">#18586</a>)</li> <li><a href="https://github.com/python/mypy/commit/f83b6435b0c07a327f6b567dfb5e79ffa36708a2"><code>f83b643</code></a> Add object self-type to tuple test fixture (<a href="https://redirect.github.com/python/mypy/issues/18592">#18592</a>)</li> <li><a href="https://github.com/python/mypy/commit/ebc2cb8befbadfc10b962af018b3fa3842d3fd87"><code>ebc2cb8</code></a> Prevent crash on generic NamedTuple with unresolved typevar bound (<a href="https://redirect.github.com/python/mypy/issues/18585">#18585</a>)</li> <li><a href="https://github.com/python/mypy/commit/63c251e249e52256629dbe8b8334937a092f792d"><code>63c251e</code></a> empty commit to trigger wheel rebuild</li> <li><a href="https://github.com/python/mypy/commit/c30573e7b95eef9d057ff42ebfd326438dac3c42"><code>c30573e</code></a> Fix literal context for ternary expressions (for real) (<a href="https://redirect.github.com/python/mypy/issues/18545">#18545</a>)</li> <li><a href="https://github.com/python/mypy/commit/23d862dd6fbb905a69bcb31e88746dc7a1eb4a43"><code>23d862d</code></a> Fix isinstance with explicit (non generic) type alias (<a href="https://redirect.github.com/python/mypy/issues/18512">#18512</a>)</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.14.1...v1.15.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.14.1&new-version=1.15.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> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam Bull <[email protected]>
1 parent e6ed541 commit c67fd8f

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

requirements/constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ multidict==6.1.0
108108
# -r requirements/multidict.in
109109
# -r requirements/runtime-deps.in
110110
# yarl
111-
mypy==1.14.1 ; implementation_name == "cpython"
111+
mypy==1.15.0 ; implementation_name == "cpython"
112112
# via
113113
# -r requirements/lint.in
114114
# -r requirements/test.in

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ multidict==6.1.0
105105
# via
106106
# -r requirements/runtime-deps.in
107107
# yarl
108-
mypy==1.14.1 ; implementation_name == "cpython"
108+
mypy==1.15.0 ; implementation_name == "cpython"
109109
# via
110110
# -r requirements/lint.in
111111
# -r requirements/test.in

requirements/lint.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ markdown-it-py==3.0.0
3939
# via rich
4040
mdurl==0.1.2
4141
# via markdown-it-py
42-
mypy==1.14.1 ; implementation_name == "cpython"
42+
mypy==1.15.0 ; implementation_name == "cpython"
4343
# via -r requirements/lint.in
4444
mypy-extensions==1.0.0
4545
# via mypy

requirements/test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ multidict==6.1.0
5555
# via
5656
# -r requirements/runtime-deps.in
5757
# yarl
58-
mypy==1.14.1 ; implementation_name == "cpython"
58+
mypy==1.15.0 ; implementation_name == "cpython"
5959
# via -r requirements/test.in
6060
mypy-extensions==1.0.0
6161
# via mypy

tests/test_client_functional.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3477,20 +3477,6 @@ async def handler(request: web.Request) -> web.Response:
34773477
assert resp.status == 200
34783478

34793479

3480-
async def test_close_context_manager(aiohttp_client: AiohttpClient) -> None:
3481-
# a test for backward compatibility with yield from syntax
3482-
async def handler(request: web.Request) -> NoReturn:
3483-
assert False
3484-
3485-
app = web.Application()
3486-
app.router.add_get("/", handler)
3487-
3488-
client = await aiohttp_client(app)
3489-
ctx = client.get("/")
3490-
ctx.close()
3491-
assert not ctx._coro.cr_running
3492-
3493-
34943480
async def test_session_auth(aiohttp_client: AiohttpClient) -> None:
34953481
async def handler(request: web.Request) -> web.Response:
34963482
return web.json_response({"headers": dict(request.headers)})

0 commit comments

Comments
 (0)