Drop f prefix from strings without placeholders

Proprietary

When an f-string has no {...} expressions, strip the f prefix and convert it to an ordinary string literal. An f-string escaping a brace as {{ or }} is left alone.

org.openrewrite.python.cleanup.RemoveRedundantFstring
mod run . --recipe=org.openrewrite.python.cleanup.RemoveRedundantFstring

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.