From e341ce3a5106568780f9b7f2afc41950abf2a834 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Mon, 12 Oct 2026 18:19:40 +0100 Subject: [PATCH] Bump ast-serialize to 0.13.0 --- dev-requirements.txt | 2 +- mypy-requirements.txt | 2 +- pyproject.toml | 4 ++-- test-data/unit/check-errorcodes.test | 3 +++ test-requirements.txt | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 490c021e0c49..424d676f774e 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,7 +4,7 @@ # # pip-compile --allow-unsafe --output-file=dev-requirements.txt --strip-extras dev-requirements.in # -ast-serialize==0.12.1 +ast-serialize==0.13.0 # via # -r mypy-requirements.txt # -r test-requirements.txt diff --git a/mypy-requirements.txt b/mypy-requirements.txt index 578ce0f4e478..ef0d8a0bc5b4 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.16.0; platform_python_implementation != 'PyPy' -ast-serialize>=0.12.1,<1.0.0 +ast-serialize>=0.13.0,<1.0.0 diff --git a/pyproject.toml b/pyproject.toml index 35f98aa1596d..1efd141f61d3 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.12.1,<1.0.0", + "ast-serialize>=0.13.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.16.0; platform_python_implementation != 'PyPy'", - "ast-serialize>=0.12.1,<1.0.0", + "ast-serialize>=0.13.0,<1.0.0", ] dynamic = ["version"] diff --git a/test-data/unit/check-errorcodes.test b/test-data/unit/check-errorcodes.test index c3882b86d72f..455eb93d940b 100644 --- a/test-data/unit/check-errorcodes.test +++ b/test-data/unit/check-errorcodes.test @@ -852,7 +852,10 @@ main:2: error: Name "y" is not defined [name-defined] x = y # type: int # type: ignored[foo] x = y # type: int # type: ignored [foo] [out] +main:1: error: Name "y" is not defined [name-defined] main:1: error: Multiple type comments on the same line [syntax] +main:2: error: Name "x" already defined on line 1 [no-redef] +main:2: error: Name "y" is not defined [name-defined] main:2: error: Multiple type comments on the same line [syntax] [case testErrorCode__exit__Return] diff --git a/test-requirements.txt b/test-requirements.txt index bdeae82e315f..4e572ef5573f 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.12.1 +ast-serialize==0.13.0 # via -r mypy-requirements.txt attrs==26.1.0 # via -r test-requirements.in