|
52 | 52 | "call(something=something)", |
53 | 53 | # Strings. |
54 | 54 | "f'a {round(key, 2)} {z}'", |
55 | | - # YORE: EOL 3.13: Replace line with `"t'a {round(key, 2)} {z}'",`. |
| 55 | + 'f"it\'s {x}"', # ' only -> " delimiter |
| 56 | + "f\"don't {x} won't {y}\"", # multiple ' -> " delimiter |
| 57 | + "f'say \"hello\" to {x}'", # " only -> ' delimiter |
| 58 | + 'f\'"quoted" and "re-quoted" {x}\'', # multiple " -> ' delimiter |
| 59 | + "f'''it's \"complicated\" {x}'''", # both -> triple-' delimiter |
| 60 | + "f'''she said \"it's fine\" to {x}'''", # both, different parts -> triple-' |
| 61 | + # YORE: EOL 3.13: Regex-replace `\*\(\[(.+)\].+\),` with `\1,` within line. |
56 | 62 | *(["t'a {round(key, 2)} {z}'"] if sys.version_info >= (3, 14) else []), |
57 | | - # f-strings with quote characters in literal parts (gh-444). |
58 | | - 'f"it\'s {x}"', # ' only → " delimiter |
59 | | - 'f"don\'t {x} won\'t {y}"', # multiple ' → " delimiter |
60 | | - "f'say \"hello\" to {x}'", # " only → ' delimiter |
61 | | - "f'\"quoted\" and \"re-quoted\" {x}'", # multiple " → ' delimiter |
62 | | - "f'''it's \"complicated\" {x}'''", # both → triple-' delimiter |
63 | | - "f'''she said \"it's fine\" to {x}'''", # both, different parts → triple-' |
64 | | - # YORE: EOL 3.13: Replace block with lines 2-4. |
65 | | - *( |
66 | | - [ |
67 | | - 't"it\'s {x}"', |
68 | | - "t'say \"hello\" to {x}'", |
69 | | - "t'''it's \"complicated\" {x}'''", |
70 | | - ] |
71 | | - if sys.version_info >= (3, 14) |
72 | | - else [] |
73 | | - ), |
| 63 | + # YORE: EOL 3.13: Regex-replace `\*\(\[(.+)\].+\),` with `\1,` within line. |
| 64 | + *(['t"it\'s {x}"'] if sys.version_info >= (3, 14) else []), |
| 65 | + # YORE: EOL 3.13: Regex-replace `\*\(\[(.+)\].+\),` with `\1,` within line. |
| 66 | + *(["t'say \"hello\" to {x}'"] if sys.version_info >= (3, 14) else []), |
| 67 | + # YORE: EOL 3.13: Regex-replace `\*\(\[(.+)\].+\),` with `\1,` within line. |
| 68 | + *(["t'''it's \"complicated\" {x}'''"] if sys.version_info >= (3, 14) else []), |
74 | 69 | # Slices. |
75 | 70 | "o[x]", |
76 | 71 | "o[x, y]", |
|
0 commit comments