From 19099c89a9b92e62d52ff849188e035924ca098f Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 17:39:10 +0000 Subject: [PATCH] style: format code with Autopep8, Black, isort and Yapf This commit fixes the style issues introduced in 12b16c7 according to the output from Autopep8, Black, isort and Yapf. Details: https://github.com/One-Click-Auth/TrustAuthx-Py-SDK/pull/59 --- trustauthx/authlite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trustauthx/authlite.py b/trustauthx/authlite.py index 0271095..a0bdd33 100644 --- a/trustauthx/authlite.py +++ b/trustauthx/authlite.py @@ -1037,7 +1037,7 @@ def remove_role( rols = [] if isinstance(rol_ids, str): rols.append(rol_ids) - elif isinstance(rol_ids,list): + elif isinstance(rol_ids, list): rols = [i for i in rol_ids] else: raise TypeError() @@ -1109,7 +1109,7 @@ def update_role( else: raise TypeError() rols_rem = [] - if isinstance(rol_ids_to_remove,str): + if isinstance(rol_ids_to_remove, str): rols_rem.append(rol_ids_to_remove) elif isinstance(rol_ids_to_remove, list): rols_rem = [i for i in rol_ids_to_remove]