From b515884aedac388a3899baaa0ca70af2f66773d4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 18 Jun 2024 12:36:56 -0500 Subject: fix mypy errors --- gn_auth/auth/authorisation/resources/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gn_auth') 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", -- cgit v1.2.3