mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-26 06:15:39 +08:00
Represent dictionary entries as Python AST nodes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user