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