mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
[pyupgrade] Automatically rewrite format-strings to f-strings (#1905)
This commit is contained in:
@@ -61,6 +61,15 @@ impl Default for Quote {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Quote> for char {
|
||||
fn from(val: Quote) -> Self {
|
||||
match val {
|
||||
Quote::Single => '\'',
|
||||
Quote::Double => '"',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&Quote> for vendor::str::Quote {
|
||||
fn from(val: &Quote) -> Self {
|
||||
match val {
|
||||
|
||||
Reference in New Issue
Block a user