Skip to content

Commit ca23015

Browse files
committed
Bump ast-serialize version to 0.3.0
1 parent e4605a5 commit ca23015

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎mypy-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ mypy_extensions>=1.0.0
66
pathspec>=1.0.0
77
tomli>=1.1.0; python_version<'3.11'
88
librt>=0.9.0; platform_python_implementation != 'PyPy'
9-
ast-serialize>=0.2.3,<1.0.0
9+
ast-serialize>=0.3.0,<1.0.0

‎mypy/nativeparse.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def parse_to_binary_ast(
271271
platform=options.platform,
272272
always_true=options.always_true,
273273
always_false=options.always_false,
274-
cache_version=2,
274+
cache_version=3,
275275
)
276276
return (
277277
ast_bytes,
@@ -376,7 +376,7 @@ def read_statement(state: State, data: ReadBuffer) -> Statement:
376376
names.append((name, asname))
377377

378378
stmt = ImportFrom(module_id, relative, names)
379-
read_loc(data, stmt)
379+
_read_and_set_import_metadata(data, stmt)
380380
expect_end_tag(data)
381381
return stmt
382382
elif tag == nodes.FOR_STMT:
@@ -435,7 +435,7 @@ def read_statement(state: State, data: ReadBuffer) -> Statement:
435435
asname = None
436436
ids.append((name, asname))
437437
stmt = Import(ids)
438-
read_loc(data, stmt)
438+
_read_and_set_import_metadata(data, stmt)
439439
expect_end_tag(data)
440440
return stmt
441441
elif tag == nodes.RAISE_STMT:
@@ -519,7 +519,7 @@ def read_statement(state: State, data: ReadBuffer) -> Statement:
519519
relative = read_int(data)
520520

521521
stmt = ImportAll(module_id, relative)
522-
read_loc(data, stmt)
522+
_read_and_set_import_metadata(data, stmt)
523523
expect_end_tag(data)
524524
return stmt
525525
elif tag == nodes.NONLOCAL_DECL:

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies = [
5656
"pathspec>=1.0.0",
5757
"tomli>=1.1.0; python_version<'3.11'",
5858
"librt>=0.9.0; platform_python_implementation != 'PyPy'",
59-
"ast-serialize>=0.2.3,<1.0.0",
59+
"ast-serialize>=0.3.0,<1.0.0",
6060
]
6161
dynamic = ["version"]
6262

‎test-requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# pip-compile --allow-unsafe --output-file=test-requirements.txt --strip-extras test-requirements.in
66
#
7-
ast-serialize==0.2.3
7+
ast-serialize==0.3.0
88
# via -r test-requirements.in
99
attrs==25.4.0
1010
# via -r test-requirements.in

0 commit comments

Comments
 (0)