Skip to content

Commit

Permalink
[chore] function types
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Oct 9, 2023
1 parent b59d55f commit 23876d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeharvest/core/scrapers/realtor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 23876d5

Please sign in to comment.