From e734ba24422a94fc81e17f107f725a82625db3be Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Wed, 2 Sep 2026 17:21:16 +0100 Subject: [PATCH 1/2] Bump ast-serialize to 0.9.0 --- mypy-requirements.txt | 2 +- pyproject.toml | 4 ++-- test-requirements.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mypy-requirements.txt b/mypy-requirements.txt index edb73a795ae2..83f6f4d7029d 100644 --- a/mypy-requirements.txt +++ b/mypy-requirements.txt @@ -6,4 +6,4 @@ mypy_extensions>=1.0.0 pathspec>=1.0.0 tomli>=1.1.0; python_version<'3.11' librt>=0.15.0; platform_python_implementation != 'PyPy' -ast-serialize>=0.8.0,<1.0.0 +ast-serialize>=0.9.0,<1.0.0 diff --git a/pyproject.toml b/pyproject.toml index f5de683b98fd..8fc9f9e726e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ requires = [ "types-psutil", "types-setuptools", # required to work around a mypyc import bug - "ast-serialize>=0.8.0,<1.0.0", + "ast-serialize>=0.9.0,<1.0.0", ] build-backend = "setuptools.build_meta" @@ -59,7 +59,7 @@ dependencies = [ "pathspec>=1.0.0", "tomli>=1.1.0; python_version<'3.11'", "librt>=0.15.0; platform_python_implementation != 'PyPy'", - "ast-serialize>=0.8.0,<1.0.0", + "ast-serialize>=0.9.0,<1.0.0", ] dynamic = ["version"] diff --git a/test-requirements.txt b/test-requirements.txt index a6e6dd53bb4f..5e5cde32abf6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,7 +4,7 @@ # # pip-compile --allow-unsafe --output-file=test-requirements.txt --strip-extras test-requirements.in # -ast-serialize==0.8.0 +ast-serialize==0.9.0 # via -r mypy-requirements.txt attrs==26.1.0 # via -r test-requirements.in From a3327bef6902ab498cc1d20734f392025a69c234 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Wed, 2 Sep 2026 17:25:36 +0100 Subject: [PATCH 2/2] Update native parser test --- test-data/unit/native-parser.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-data/unit/native-parser.test b/test-data/unit/native-parser.test index 5d78ad68545a..83dbb3e8f88b 100644 --- a/test-data/unit/native-parser.test +++ b/test-data/unit/native-parser.test @@ -1717,7 +1717,7 @@ MypyFile:1( ExpressionStmt:2( BytesExpr(foobar)) ExpressionStmt:3( - BytesExpr(x\\n\\\'))) + BytesExpr(x\\n\\'))) [case testBytesLiteralWithEscapes] b'\r\n\t\x2f\xbe'