f-string
used without any expression PTC-W0027f-string
used without any expression151 except httpx.RequestError as e:
152 raise HTTPException(status_code=400, detail=str(e))
153 except:
154 raise HTTPException(status_code=500, detail=f"Unknown error")155
156
157@app.get("/icon/{icon}")
It is wasteful to use f-string
mechanism if there are no expressions to be extrapolated. It is recommended to use regular strings instead.