We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47f9f98 + ed7b183 commit 96be375Copy full SHA for 96be375
add_trailing_comma/_token_helpers.py
@@ -136,6 +136,10 @@ def fix_brace(
136
tokens[first_brace + 1].name == 'FSTRING_START' and
137
tokens[last_brace - 1].name == 'FSTRING_END'
138
) or
139
+ (
140
+ tokens[first_brace + 1].name == 'TSTRING_START' and
141
+ tokens[last_brace - 1].name == 'TSTRING_END'
142
+ ) or
143
# don't unhug if it is a single line
144
fix_data.remove_comma
145
):
tests/features/unhug_test.py
@@ -27,6 +27,10 @@
27
'textwrap.dedent(f"""\n'
28
' hi\n'
29
'""")',
30
+ # single triple-quoted tstring argument, don't unhug
31
+ 'textwrap.dedent(t"""\n'
32
+ ' hi\n'
33
+ '""")',
34
),
35
)
36
def test_noop_unhugs(src):
0 commit comments