From 5ced267dc8c5ef080926c96ad0d875678b0c83ce Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 15:00:14 +0000 Subject: [PATCH 1/2] Initial plan From d69dfd1cd141e174fa469f4df475105e59aeca00 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 15:03:50 +0000 Subject: [PATCH 2/2] Fix mypy no-any-return in Firestore timestamp getters Co-authored-by: yhyatt <10474956+yhyatt@users.noreply.github.com> --- src/dmaf/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dmaf/database.py b/src/dmaf/database.py index e17878b..a157c76 100644 --- a/src/dmaf/database.py +++ b/src/dmaf/database.py @@ -744,7 +744,7 @@ def get_last_alert_time(self) -> datetime | None: for doc in docs: data = doc.to_dict() sent_ts = data.get("sent_ts") - if sent_ts: + if isinstance(sent_ts, datetime): return sent_ts return None except Exception: @@ -812,7 +812,7 @@ def get_last_refresh_time(self) -> datetime | None: for doc in docs: data = doc.to_dict() created_ts = data.get("created_ts") - if created_ts: + if isinstance(created_ts, datetime): return created_ts return None except Exception: