From a546efc35336faf8b07ea0bcca1d07877da24d2a Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Wed, 2 Sep 2026 18:01:01 +0100 Subject: [PATCH] Bump ast-serialize to 0.9.0 (#21929) I intentionally not bumping cache version yet, to make sure backwards compatibility is OK. --- mypy-requirements.txt | 2 +- pyproject.toml | 4 ++-- test-data/unit/native-parser.test | 2 +- test-requirements.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) --- mypy.orig/mypy-requirements.txt +++ mypy/mypy-requirements.txt @@ -6,4 +6,4 @@ pathspec>=1.0.0 tomli>=1.1.0; python_version<'3.11' librt>=0.13.0; platform_python_implementation != 'PyPy' -ast-serialize>=0.6.0,<1.0.0 +ast-serialize>=0.9.0,<1.0.0 --- mypy.orig/pyproject.toml +++ mypy/pyproject.toml @@ -15,7 +15,7 @@ "types-psutil", "types-setuptools", # required to work around a mypyc import bug - "ast-serialize>=0.6.0,<1.0.0", + "ast-serialize>=0.9.0,<1.0.0", ] build-backend = "setuptools.build_meta" @@ -59,7 +59,7 @@ "pathspec>=1.0.0", "tomli>=1.1.0; python_version<'3.11'", "librt>=0.13.0; platform_python_implementation != 'PyPy'", - "ast-serialize>=0.6.0,<1.0.0", + "ast-serialize>=0.9.0,<1.0.0", ] dynamic = ["version"] --- mypy.orig/test-data/unit/native-parser.test +++ mypy/test-data/unit/native-parser.test @@ -1717,7 +1717,7 @@ ExpressionStmt:2( BytesExpr(foobar)) ExpressionStmt:3( - BytesExpr(x\\n\\\'))) + BytesExpr(x\\n\\'))) [case testBytesLiteralWithEscapes] b'\r\n\t\x2f\xbe' --- mypy.orig/test-requirements.txt +++ mypy/test-requirements.txt @@ -4,7 +4,7 @@ # # pip-compile --allow-unsafe --output-file=test-requirements.txt --strip-extras test-requirements.in # -ast-serialize==0.6.0 +ast-serialize==0.9.0 # via -r mypy-requirements.txt attrs==26.1.0 # via -r test-requirements.in