From 23ecba1e6fcfb5f96bb27c6298396d190c8b3659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jer=C3=B3nimo=20Mendes?= Date: Sat, 4 Feb 2023 13:30:37 +0000 Subject: [PATCH] style: fix formatting --- src/keycloak/keycloak_admin.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index 2a17da5..9a60e07 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -157,10 +157,14 @@ class KeycloakAdmin: if self.token is None: self.get_token() - headers = { - "Authorization": "Bearer " + self.token.get("access_token"), - "Content-Type": "application/json", - } if self.token is not None else {} + headers = ( + { + "Authorization": "Bearer " + self.token.get("access_token"), + "Content-Type": "application/json", + } + if self.token is not None + else {} + ) if self.custom_headers is not None: # merge custom headers to main headers