diff options
author | Frederick Muriuki Muriithi | 2024-07-18 16:59:28 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-07-31 09:30:22 -0500 |
commit | bb66f79d675ad046acdc4e6853416bf7e948d6dc (patch) | |
tree | 23cd270ccbffb9a86ee7c771d6a0fb9a659c0067 /gn_auth/auth | |
parent | 7eb26c8e0a01b61a0e79d2acc8ba010660aaa010 (diff) | |
download | gn-auth-bb66f79d675ad046acdc4e6853416bf7e948d6dc.tar.gz |
Ignore warning from mypy.
Diffstat (limited to 'gn_auth/auth')
-rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py index bccac08..d8ac431 100644 --- a/gn_auth/auth/authorisation/resources/views.py +++ b/gn_auth/auth/authorisation/resources/views.py @@ -266,7 +266,7 @@ def assign_role_to_user(resource_id: UUID) -> Response: user = user_by_email(conn, user_email) return assign_resource_user( conn, resource, user, - role_by_id(conn, UUID(role_id))) + role_by_id(conn, UUID(role_id)))# type: ignore[arg-type] except AssertionError as aserr: raise AuthorisationError(aserr.args[0]) from aserr @@ -293,7 +293,7 @@ def unassign_role_to_user(resource_id: UUID) -> Response: resource = resource_by_id(conn, _token.user, resource_id) return unassign_resource_user( conn, resource, user_by_id(conn, UUID(user_id)), - role_by_id(conn, UUID(role_id))) + role_by_id(conn, UUID(role_id)))# type: ignore[arg-type] except AssertionError as aserr: raise AuthorisationError(aserr.args[0]) from aserr |