f-string
used without any expression PTC-W0027f-string
used without any expression 18
19app = Flask(__name__)
20client = secretmanager.SecretManagerServiceClient()
21name = f"projects/466666823263/secrets/OpenAI/versions/1" 22response = client.access_secret_version(name=name)
23secret_value = response.payload.data.decode('UTF-8')
24openai.api_key = secret_value
It is wasteful to use f-string
mechanism if there are no expressions to be extrapolated. It is recommended to use regular strings instead.