f-string is unnecessary here as there are no placeholders in the string.
f-strings provide a way to embed expressions inside string literals using minimal syntax. Through this f-strings are readable, more concise, and less prone to error than other ways of formatting.
However, if the string does not contain any expressions or placeholders then there is no need to use an f-string. Just use a string.
If our GitHub code review bot spots this issue in your pull request it gives this advice:
1 | + | value = f'some-value' |
f-string is unnecessary here as there are no placeholders in the string.
Read more- | value = f'some-value' |
+ | value = 'some-value' |