From 23876d57252e66717bead3b4d44667a4c1927d8c Mon Sep 17 00:00:00 2001 From: Cullen Watson Date: Mon, 9 Oct 2023 11:02:51 -0500 Subject: [PATCH] [chore] function types --- homeharvest/core/scrapers/realtor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeharvest/core/scrapers/realtor/__init__.py b/homeharvest/core/scrapers/realtor/__init__.py index c526f83..0f175f8 100644 --- a/homeharvest/core/scrapers/realtor/__init__.py +++ b/homeharvest/core/scrapers/realtor/__init__.py @@ -626,7 +626,7 @@ class RealtorScraper(Scraper): ) @staticmethod - def calculate_days_on_mls(result): + def calculate_days_on_mls(result: dict) -> Optional[int]: list_date_str = result.get("list_date") list_date = datetime.strptime(list_date_str.split("T")[0], "%Y-%m-%d") if list_date_str else None last_sold_date_str = result.get("last_sold_date")