don't rewrite string quotes inside f-strings

This commit is contained in:
Anthony Sottile 2023-10-07 13:50:33 -04:00
parent 6cad77080c
commit f27ee318d2
2 changed files with 20 additions and 1 deletions

View file

@ -37,6 +37,12 @@ TESTS = (
1,
),
('"foo""bar"', "'foo''bar'", 1),
pytest.param(
"f'hello{\"world\"}'",
"f'hello{\"world\"}'",
0,
id='ignore nested fstrings',
),
)