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:

code-review-doctorbotsuggested changes just now
helpers.py
1
+
value = f'some-value'
Suggested changes
-
value = f'some-value'
+
value = 'some-value'
Commit suggestion

f-string is unnecessary here as there are no placeholders in the string.

Read more
Update helpers.py
We're your Python code review copilot. Get code improvements right in your pull request with our GitHub code review bot.

Configuring this check

Code Review Doctor will run this check by default. No configuration is needed but the check can be turned on/off using check code avoid-redundant-f-string in your pyproject.toml file.

Read more about configuring Code Review Doctor.