-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'FormattedValue' object has no attribute 's' #1
Comments
Seems it's a grammar I didn't think of. Thx for reporting. |
Many thanks! |
As described in PEP 498, f-string may contains evaluated expressions as format specifiers.
|
I'll also see a way to modify f-string in my code to make it easier for f2format. |
It seems in my case f2format fails when trying to convert an f-string that has format specifiers which contain evaluated expressions (see PEP 498, Format specifiers) E.g. a line like this: Shall be converted like this: |
This issue should have been revolved in version 0.5.0. Thx for your report @cioma |
Seems to be working fine for me, many thanks! |
I have a Python source file (see attachment) that gives the following error when I try to convert it with f2format v0.4.3 on Ubuntu 18.04 64-bit using Python 3.6.5:
AttributeError: 'FormattedValue' object has no attribute 's'
register.py.zip
The text was updated successfully, but these errors were encountered: