From 9b553cc0f4124336d6657a77ae8b3c094c104ffb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 30 Jul 2025 12:02:24 -0500 Subject: Type-Check fix: Function does not return anything. --- gn_auth/auth/authorisation/users/admin/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/users/admin/models.py') diff --git a/gn_auth/auth/authorisation/users/admin/models.py b/gn_auth/auth/authorisation/users/admin/models.py index 3543dac..3d68932 100644 --- a/gn_auth/auth/authorisation/users/admin/models.py +++ b/gn_auth/auth/authorisation/users/admin/models.py @@ -48,7 +48,7 @@ def make_sys_admin(cursor: db.DbCursor, user: User) -> User: return grant_sysadmin_role(cursor, user) -def revoke_sysadmin_role(conn: db.DbConnection, user: User) -> User: +def revoke_sysadmin_role(conn: db.DbConnection, user: User): """Revoke `system-administrator` role from `user`.""" with db.cursor(conn) as cursor: cursor.execute("DELETE FROM user_roles WHERE user_id=? AND role_id=?", -- cgit 1.4.1