From 941d1081f784cfafb1bf71c905e26131f986e5a1 Mon Sep 17 00:00:00 2001 From: Alexandre Shofstall Date: Thu, 3 Jul 2025 18:11:18 +0200 Subject: [PATCH 1/2] Fix typing syntax for Python 3.9 compatibility in __init__.py --- homeharvest/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeharvest/__init__.py b/homeharvest/__init__.py index 4333b58..c59a71a 100644 --- a/homeharvest/__init__.py +++ b/homeharvest/__init__.py @@ -4,13 +4,13 @@ from .core.scrapers import ScraperInput from .utils import process_result, ordered_properties, validate_input, validate_dates, validate_limit from .core.scrapers.realtor import RealtorScraper from .core.scrapers.models import ListingType, SearchPropertyType, ReturnType, Property - +from typing import Optional, List def scrape_property( location: str, listing_type: str = "for_sale", return_type: str = "pandas", - property_type: list[str] | None = None, + property_type: Optional[List[str]] = None, radius: float = None, mls_only: bool = False, past_days: int = None, From b4f05b254ad0cd5d6f4f6eb350595e68e5c21d7a Mon Sep 17 00:00:00 2001 From: Zachary Hampton Date: Thu, 3 Jul 2025 09:43:10 -0700 Subject: [PATCH 2/2] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 346873e..df95d84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.4.9" +version = "0.4.10" description = "Real estate scraping library" authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/HomeHarvest"