The parameter-level annotation on _check_keys_and_notif_id alone wasn't enough -- mypy needs the type at the empty list's declaration site inside filter_notification_alerts. Also reformatted the helper's now-longer signature to satisfy ruff. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>