Use file-specific quote for C408 (#3128)

This commit is contained in:
Charlie Marsh
2023-02-22 10:26:46 -05:00
committed by GitHub
parent 817d0b4902
commit df3932f750

View File

@@ -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);
}