mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-30 23:27:39 +00:00
Fix ast types' _fields and use 0-based column
This commit is contained in:
parent
952d70b9d1
commit
fa41a1e2f6
56 changed files with 480 additions and 480 deletions
|
@ -449,7 +449,7 @@ class ClassDefVisitor(EmitVisitor):
|
|||
f"ctx.new_str(ascii!({json.dumps(f.name)})).into()" for f in fields
|
||||
)
|
||||
self.emit(
|
||||
f"class.set_attr(identifier!(ctx, _fields), ctx.new_list(vec![{fields}]).into());",
|
||||
f"class.set_attr(identifier!(ctx, _fields), ctx.new_tuple(vec![{fields}]).into());",
|
||||
depth + 2,
|
||||
)
|
||||
attrs = ",".join(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue