mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Use file-specific quote for C408 (#3128)
This commit is contained in:
@@ -522,11 +522,13 @@ pub fn fix_unnecessary_collection_call(
|
||||
// Quote each argument.
|
||||
for arg in &call.args {
|
||||
let quoted = format!(
|
||||
"\"{}\"",
|
||||
"{}{}{}",
|
||||
stylist.quote(),
|
||||
arg.keyword
|
||||
.as_ref()
|
||||
.expect("Expected dictionary argument to be kwarg")
|
||||
.value
|
||||
.value,
|
||||
stylist.quote(),
|
||||
);
|
||||
arena.push(quoted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user