f-string
used without any expression27 "Content-Type": "application/json",
28 "Authorization": f"Bearer {access_token}",
29 }
30 response = requests.get(f"https://api.sidra.com/chain/data", headers=headers)31 if response.status_code == 200:
32 return response.json()
33 else:
f-string
used without any expression13 "Authorization": f"Bearer {self.api_key}",
14 }
15 response = requests.post(
16 f"https://api.sidra.com/authenticate",17 headers=headers,
18 json={"api_secret": self.api_secret},
19 )
Description
It is wasteful to use f-string
mechanism if there are no expressions to be extrapolated. It is recommended to use regular strings instead.