aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/resources
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-18 12:36:56 -0500
committerFrederick Muriuki Muriithi2024-06-18 12:36:56 -0500
commitb515884aedac388a3899baaa0ca70af2f66773d4 (patch)
treeeeede44b012ae7b6ad0f7a7530a4cdc4626bc897 /gn_auth/auth/authorisation/resources
parent8f287bd7ef19ff309b6ced6a4c672d2f60229ad4 (diff)
downloadgn-auth-b515884aedac388a3899baaa0ca70af2f66773d4.tar.gz
fix mypy errors
Diffstat (limited to 'gn_auth/auth/authorisation/resources')
-rw-r--r--gn_auth/auth/authorisation/resources/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py
index 5c2b66e..cf9ebc4 100644
--- a/gn_auth/auth/authorisation/resources/views.py
+++ b/gn_auth/auth/authorisation/resources/views.py
@@ -553,9 +553,10 @@ def unassign_resource_role_privilege(resource_id: UUID, role_id: UUID):
raise AuthorisationError(
"You need to provide a privilege to unassign")
- delete_privilege_from_resource_role(cursor,
- _role,
- privilege_by_id(conn, privilege_id))
+ delete_privilege_from_resource_role(
+ cursor,
+ _role,# type: ignore[arg-type]
+ privilege_by_id(conn, privilege_id))# type: ignore[arg-type]
return jsonify({
"status": "Success",