diff options
author | Frederick Muriuki Muriithi | 2024-06-18 12:36:56 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-18 12:36:56 -0500 |
commit | b515884aedac388a3899baaa0ca70af2f66773d4 (patch) | |
tree | eeede44b012ae7b6ad0f7a7530a4cdc4626bc897 /gn_auth | |
parent | 8f287bd7ef19ff309b6ced6a4c672d2f60229ad4 (diff) | |
download | gn-auth-b515884aedac388a3899baaa0ca70af2f66773d4.tar.gz |
fix mypy errors
Diffstat (limited to 'gn_auth')
-rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 7 |
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", |