From 62b6726d42e7c21afef4771a9f88f7db7558f946 Mon Sep 17 00:00:00 2001 From: Alexandre Shofstall Date: Thu, 3 Jul 2025 19:16:56 +0200 Subject: [PATCH 1/2] Fix syntax of __init__ line 24 --- homeharvest/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeharvest/__init__.py b/homeharvest/__init__.py index c59a71a..1aaff69 100644 --- a/homeharvest/__init__.py +++ b/homeharvest/__init__.py @@ -4,7 +4,7 @@ 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 +from typing import Union, Optional, List def scrape_property( location: str, @@ -21,7 +21,7 @@ def scrape_property( extra_property_data: bool = True, exclude_pending: bool = False, limit: int = 10000 -) -> pd.DataFrame | list[dict] | list[Property]: +) -> Union[pd.DataFrame, list[dict], list[Property]]: """ Scrape properties from Realtor.com based on a given location and listing type. :param location: Location to search (e.g. "Dallas, TX", "85281", "2530 Al Lipscomb Way") From 0fdc309262c000c8fcba6aac4c082902bc3c2fbd Mon Sep 17 00:00:00 2001 From: Zachary Hampton Date: Thu, 3 Jul 2025 10:28:14 -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 df95d84..03bab07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.4.10" +version = "0.4.11" description = "Real estate scraping library" authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/HomeHarvest"