You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even if Python support the use of string inside of a f-string value, for example retrive value of a dic, this syntax can be confusing and less readable than keep a normal format call.
So I suggest a command/option --no-recursive-string that will abort the conversion/optimization of the format call if the result will contain any recursive string.
With this option, the code
'name %s, type %s'% (file['id'], file['media-type'])
will be converted to:
f'name {}, type {}'.format(file['id'], file['media-type'])
and not:
f"name {file['id']}, type {file['media-type']}"
The text was updated successfully, but these errors were encountered:
Even if Python support the use of string inside of a f-string value, for example retrive value of a dic, this syntax can be confusing and less readable than keep a normal format call.
So I suggest a command/option
--no-recursive-string
that will abort the conversion/optimization of the format call if the result will contain any recursive string.With this option, the code
will be converted to:
and not:
f"name {file['id']}, type {file['media-type']}"
The text was updated successfully, but these errors were encountered: