KOSASIH / pi-nexus-autonomous-banking-network

f-string used without any expression PTC-W0027
Anti-pattern
Major
2 occurrences in this check
27            "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:
13            "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        )