diff --git a/greg/tasks.py b/greg/tasks.py
index 657e924b2b35dc28b7b78b3b61f3df56d6539936..f2c4e7418a31a16fc9359036a1b6da9ada1e41e4 100644
--- a/greg/tasks.py
+++ b/greg/tasks.py
@@ -15,7 +15,7 @@ from gregui.mailutils.role_ending import RolesEnding
 logger = logging.getLogger(__name__)
 
 
-def notify_sponsors_roles_ending() -> list[str]:
+def notify_sponsors_roles_ending() -> list[str]:  # pylint: disable=too-many-locals
     """
     This task notifies sponsors of roles (that are accessible to them)
     that are about to expire.