[pyupgrade] Automatically rewrite format-strings to f-strings (#1905)

This commit is contained in:
Colin Delahunty
2023-01-16 23:06:39 -05:00
committed by GitHub
parent a4862857de
commit 1730f2a603
13 changed files with 774 additions and 3 deletions

View File

@@ -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 {