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 @@ def _parse_description(result: dict) -> Description: ) @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")