From a9aef5ec4e44908339e1b82e13ce2459ad50d87e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 15:23:09 +0000 Subject: [PATCH 1/2] Bump mypy from 1.20.2 to 2.0.0 (#12479) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [mypy](https://github.com/python/mypy) from 1.20.2 to 2.0.0.
Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next Release

Mypy 2.0

We’ve just uploaded mypy 2.0.0 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. There are also changes to options and defaults. 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.

Enable --local-partial-types by Default

This flag affects the inference of types based on assignments in other scopes. For now, explicitly disabling this continues to be supported, but this support will be removed in the future as the legacy behaviour is hard to support with other current and future features in mypy, like the daemon or the new implementation of flexible redefinitions.

Contributed by Ivan Levkivskyi, Jukka Lehtosalo, Shantanu in PR 21163.

Enable --strict-bytes by Default

Per PEP 688, mypy no longer treats bytearray and memoryview values as assignable to the bytes type.

Contributed by Shantanu in PR 18371.

New Behavior for --allow-redefinition

The --allow-redefinition flag now behaves like --allow-redefinition-new in mypy 1.20 and earlier. The new behavior is generally more flexible. For example, you can have different types for a variable in different blocks:

# mypy: allow-redefinition

def foo(cond: bool) -> None: if cond: for x in ["a", "b"]: # Type of "x" is "str" here ... else: for x in [1, 2]: # Type of "x" is "int" here ...

... (truncated)

Commits

--------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam Bull --- requirements/constraints.txt | 4 +++- requirements/dev.txt | 4 +++- requirements/lint.txt | 4 +++- requirements/test-common.txt | 4 +++- requirements/test-ft.txt | 4 +++- requirements/test.txt | 4 +++- tests/test_web_request.py | 2 +- 7 files changed, 19 insertions(+), 7 deletions(-) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index fc5aae4198c..94a07ecbc00 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -18,6 +18,8 @@ alabaster==1.0.0 # via sphinx annotated-types==0.7.0 # via pydantic +ast-serialize==0.3.0 + # via mypy async-timeout==5.0.1 ; python_version < "3.11" # via # -r requirements/runtime-deps.in @@ -117,7 +119,7 @@ multidict==6.7.1 # -r requirements/multidict.in # -r requirements/runtime-deps.in # yarl -mypy==1.20.2 ; implementation_name == "cpython" +mypy==2.0.0 ; implementation_name == "cpython" # via # -r requirements/lint.in # -r requirements/test-common.in diff --git a/requirements/dev.txt b/requirements/dev.txt index 1498bf9133b..2864b872983 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -18,6 +18,8 @@ alabaster==1.0.0 # via sphinx annotated-types==0.7.0 # via pydantic +ast-serialize==0.3.0 + # via mypy async-timeout==5.0.1 ; python_version < "3.11" # via # -r requirements/runtime-deps.in @@ -114,7 +116,7 @@ multidict==6.7.1 # via # -r requirements/runtime-deps.in # yarl -mypy==1.20.2 ; implementation_name == "cpython" +mypy==2.0.0 ; implementation_name == "cpython" # via # -r requirements/lint.in # -r requirements/test-common.in diff --git a/requirements/lint.txt b/requirements/lint.txt index 3d4bafeb30d..5b5b811de78 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -8,6 +8,8 @@ aiodns==4.0.0 # via -r requirements/lint.in annotated-types==0.7.0 # via pydantic +ast-serialize==0.3.0 + # via mypy async-timeout==5.0.1 # via valkey backports-zstd==1.3.0 ; implementation_name == "cpython" and python_version < "3.14" @@ -51,7 +53,7 @@ markdown-it-py==4.1.0 # via rich mdurl==0.1.2 # via markdown-it-py -mypy==1.20.2 ; implementation_name == "cpython" +mypy==2.0.0 ; implementation_name == "cpython" # via -r requirements/lint.in mypy-extensions==1.1.0 # via mypy diff --git a/requirements/test-common.txt b/requirements/test-common.txt index 5d19a83e305..ccba719e8dd 100644 --- a/requirements/test-common.txt +++ b/requirements/test-common.txt @@ -6,6 +6,8 @@ # annotated-types==0.7.0 # via pydantic +ast-serialize==0.3.0 + # via mypy blockbuster==1.5.26 # via -r requirements/test-common.in cffi==2.0.0 @@ -40,7 +42,7 @@ markdown-it-py==4.1.0 # via rich mdurl==0.1.2 # via markdown-it-py -mypy==1.20.2 ; implementation_name == "cpython" +mypy==2.0.0 ; implementation_name == "cpython" # via -r requirements/test-common.in mypy-extensions==1.1.0 # via mypy diff --git a/requirements/test-ft.txt b/requirements/test-ft.txt index 2fb811fce97..3101fa67a22 100644 --- a/requirements/test-ft.txt +++ b/requirements/test-ft.txt @@ -12,6 +12,8 @@ aiosignal==1.4.0 # via -r requirements/runtime-deps.in annotated-types==0.7.0 # via pydantic +ast-serialize==0.3.0 + # via mypy async-timeout==5.0.1 ; python_version < "3.11" # via -r requirements/runtime-deps.in backports-zstd==1.3.0 ; platform_python_implementation == "CPython" and python_version < "3.14" @@ -65,7 +67,7 @@ multidict==6.7.1 # via # -r requirements/runtime-deps.in # yarl -mypy==1.20.2 ; implementation_name == "cpython" +mypy==2.0.0 ; implementation_name == "cpython" # via -r requirements/test-common.in mypy-extensions==1.1.0 # via mypy diff --git a/requirements/test.txt b/requirements/test.txt index 5375bdddd2f..f80192ec2cf 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -12,6 +12,8 @@ aiosignal==1.4.0 # via -r requirements/runtime-deps.in annotated-types==0.7.0 # via pydantic +ast-serialize==0.3.0 + # via mypy async-timeout==5.0.1 ; python_version < "3.11" # via -r requirements/runtime-deps.in backports-zstd==1.3.0 ; platform_python_implementation == "CPython" and python_version < "3.14" @@ -65,7 +67,7 @@ multidict==6.7.1 # via # -r requirements/runtime-deps.in # yarl -mypy==1.20.2 ; implementation_name == "cpython" +mypy==2.0.0 ; implementation_name == "cpython" # via -r requirements/test-common.in mypy-extensions==1.1.0 # via mypy diff --git a/tests/test_web_request.py b/tests/test_web_request.py index 89cfa60fc3a..a204cc1fd48 100644 --- a/tests/test_web_request.py +++ b/tests/test_web_request.py @@ -289,7 +289,7 @@ def test_request_cookie__set_item() -> None: assert req.cookies == {"name": "value"} with pytest.raises(TypeError): - req.cookies["my"] = "value" + req.cookies["my"] = "value" # type: ignore[index] def test_request_cookies_with_special_characters() -> None: From bb35b1c0a589a1553031f7d670835fd82112db34 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 15:40:40 +0000 Subject: [PATCH 2/2] Bump markdown-it-py from 4.1.0 to 4.2.0 (#12486) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [markdown-it-py](https://github.com/executablebooks/markdown-it-py) from 4.1.0 to 4.2.0.
Release notes

Sourced from markdown-it-py's releases.

v4.2.0

What's Changed

Full Changelog: https://github.com/executablebooks/markdown-it-py/compare/v4.1.0...v4.2.0

Changelog

Sourced from markdown-it-py's changelog.

4.2.0 - 2026-05-07

  • ✨ Add make_fence_rule() factory for configurable fence markers in #394
Commits

Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements/constraints.txt | 2 +- requirements/dev.txt | 2 +- requirements/lint.txt | 2 +- requirements/test-common.txt | 2 +- requirements/test-ft.txt | 2 +- requirements/test.txt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 94a07ecbc00..a18c42eb15e 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -108,7 +108,7 @@ jinja2==3.1.6 # towncrier librt==0.10.0 # via mypy -markdown-it-py==4.1.0 +markdown-it-py==4.2.0 # via rich markupsafe==3.0.3 # via jinja2 diff --git a/requirements/dev.txt b/requirements/dev.txt index 2864b872983..8e95c8960cb 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -106,7 +106,7 @@ jinja2==3.1.6 # towncrier librt==0.10.0 # via mypy -markdown-it-py==4.1.0 +markdown-it-py==4.2.0 # via rich markupsafe==3.0.3 # via jinja2 diff --git a/requirements/lint.txt b/requirements/lint.txt index 5b5b811de78..95157038885 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -49,7 +49,7 @@ isal==1.7.2 # via -r requirements/lint.in librt==0.10.0 # via mypy -markdown-it-py==4.1.0 +markdown-it-py==4.2.0 # via rich mdurl==0.1.2 # via markdown-it-py diff --git a/requirements/test-common.txt b/requirements/test-common.txt index ccba719e8dd..17925250939 100644 --- a/requirements/test-common.txt +++ b/requirements/test-common.txt @@ -38,7 +38,7 @@ isal==1.8.0 ; python_version < "3.14" # via -r requirements/test-common.in librt==0.10.0 # via mypy -markdown-it-py==4.1.0 +markdown-it-py==4.2.0 # via rich mdurl==0.1.2 # via markdown-it-py diff --git a/requirements/test-ft.txt b/requirements/test-ft.txt index 3101fa67a22..3d797fe06e7 100644 --- a/requirements/test-ft.txt +++ b/requirements/test-ft.txt @@ -59,7 +59,7 @@ isal==1.8.0 ; python_version < "3.14" # via -r requirements/test-common.in librt==0.10.0 # via mypy -markdown-it-py==4.1.0 +markdown-it-py==4.2.0 # via rich mdurl==0.1.2 # via markdown-it-py diff --git a/requirements/test.txt b/requirements/test.txt index f80192ec2cf..ea6dac674ef 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -59,7 +59,7 @@ isal==1.7.2 ; python_version < "3.14" # via -r requirements/test-common.in librt==0.10.0 # via mypy -markdown-it-py==4.1.0 +markdown-it-py==4.2.0 # via rich mdurl==0.1.2 # via markdown-it-py