mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +00:00
Use file-specific quote for C408 (#3128)
This commit is contained in:
parent
817d0b4902
commit
df3932f750
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue