Closed mxr closed 3 months ago
yeah unfortunately the updates in python 3.12 meant we can't safely rewrite fstrings at all without potentially breaking older pythons
I see. Running the hook works under py39. Maybe I will try to run the hook under py39 as a workaround
The hook rewrites
"..."
to'...'
but does not rewritef"..."
tof'...'
(even when there are no string quotes inside the f-string). See the below example:(expected
f"{0}"
to be rewritten tof'{0}'
the same way that"0"
was rewritten to'0'
)My environment: