From fde32a3a7b871f36b969abf4316b5e46489de947 Mon Sep 17 00:00:00 2001 From: Anibal Angulo Date: Mon, 9 Mar 2026 06:50:42 +0000 Subject: [PATCH] fix lint issues --- src/va_agent/notifications.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/va_agent/notifications.py b/src/va_agent/notifications.py index e076f7f..68ccd7b 100644 --- a/src/va_agent/notifications.py +++ b/src/va_agent/notifications.py @@ -128,7 +128,9 @@ class FirestoreNotificationBackend: return result async def mark_as_notified( - self, phone_number: str, notification_ids: list[str] # noqa: ARG002 + self, + phone_number: str, # noqa: ARG002 + notification_ids: list[str], # noqa: ARG002 ) -> bool: """No-op — the agent is not the delivery mechanism.""" return True @@ -180,9 +182,7 @@ class RedisNotificationBackend: return [] data = json.loads(raw) - all_notifications: list[dict[str, Any]] = data.get( - "notificaciones", [] - ) + all_notifications: list[dict[str, Any]] = data.get("notificaciones", []) if not all_notifications: logger.info( @@ -214,8 +214,7 @@ class RedisNotificationBackend: result = recent[: self._max_to_notify] logger.info( - "Found %d recent notifications for phone: %s " - "(returning top %d)", + "Found %d recent notifications for phone: %s (returning top %d)", len(recent), phone_number, len(result), @@ -231,7 +230,9 @@ class RedisNotificationBackend: return result async def mark_as_notified( - self, phone_number: str, notification_ids: list[str] # noqa: ARG002 + self, + phone_number: str, # noqa: ARG002 + notification_ids: list[str], # noqa: ARG002 ) -> bool: """No-op — the agent is not the delivery mechanism.""" return True