Closed as not planned
Closed as not planned
Description
Bug report
Bug description:
Linting this file with the latest versions of pyupgrade and docformatter on Python 3.12.4:
def test(test_arg1):
content = f"""
<table style="width: 100%; height: 100%; font-size: 1.1em;">
<tr>
<td style="width: 100%; height: 100%;">🔗 This is a test {test_arg1} </td>
</tr>
</table>
"""
return content
seems to break:
def test(test_arg1):
content = f"""
<table style="width: 100%; height: 100%; font-size: 1.1em;">
<tr>
<td style="width: 100%; height: 100%;">🔗 This is a test {te{test_arg1} </td>
</tr>
</table>
"""
return content
I filed PyCQA/docformatter#282 and asottile/pyupgrade#949; the maintainer of pyupgrade directed me here. I wasn't able to find a duplicate f-string or tokenizer issue, so hoping this is of help - thanks!
CPython versions tested on:
3.12
Operating systems tested on:
Linux, macOS