Describe the bug
Code with invalid quotes get successfully converted.
To Reproduce
>>> import f2format
>>> s = 'hello'
>>> code = "f'{s + ''}'"
>>> print(f2format.convert(code))
'{}'.format(s + '')
>>> eval(code)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
SyntaxError: f-string: expecting '}'
>>>
Expected behavior
f2format.convert() should raise an error to report that the code is invalid
Describe the bug
Code with invalid quotes get successfully converted.
To Reproduce
Expected behavior
f2format.convert()should raise an error to report that the code is invalid