Represent dictionary entries as Python AST nodes

This commit is contained in:
Micha Reiser
2026-11-20 14:28:04 +00:00
parent e905eb561c
commit 191c8ba42b
62 changed files with 611 additions and 264 deletions
+1 -1
View File
@@ -1076,7 +1076,7 @@ impl<'a> Generator<'a> {
Expr::Dict(dict) => {
self.p("{");
let mut first = true;
for ast::DictItem { key, value } in dict {
for ast::DictItem { key, value, .. } in dict {
self.p_delim(&mut first, ", ");
if let Some(key) = key {
self.unparse_expr(key, precedence::COMMA);