mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 08:04:26 -05:00
Merge pull request #4449 from harupy/fix-dict-spread-in-dict
Fix AST generated from a dict literal containing dict unpacking
This commit is contained in:
@@ -309,4 +309,10 @@ with (0 as a, 1 as b,): pass
|
||||
assert!(parse_program(source, "<test>").is_err());
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_dict_unpacking() {
|
||||
let parse_ast = parse_expression(r#"{"a": "b", **c, "d": "e"}"#, "<test>").unwrap();
|
||||
insta::assert_debug_snapshot!(parse_ast);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user