diff --git a/CHANGELOG.md b/CHANGELOG.md index 540279f5..bd48bd8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,11 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - --> +------ +## [v6.6.3](https://github.com/asfadmin/Discovery-asf_search/compare/v6.6.2...v6.6.3) +### Fixed +- Fixes type hinting compatibility break introduced in v6.6.2 in `search_generator.py` for Python versions < v3.9 + ------ ## [v6.6.2](https://github.com/asfadmin/Discovery-asf_search/compare/v6.6.1...v6.6.2) ### Added diff --git a/asf_search/search/search_generator.py b/asf_search/search/search_generator.py index 156e50d5..8763ea7e 100644 --- a/asf_search/search/search_generator.py +++ b/asf_search/search/search_generator.py @@ -1,5 +1,5 @@ import logging -from typing import Generator, Union, Iterable, Tuple +from typing import Generator, Union, Iterable, Tuple, List from copy import copy from requests.exceptions import HTTPError from requests import ReadTimeout, Response @@ -20,7 +20,6 @@ from asf_search.WKT.validate_wkt import validate_wkt from asf_search.search.error_reporting import report_search_error - def search_generator( absoluteOrbit: Union[int, Tuple[int, int], Iterable[Union[int, Tuple[int, int]]]] = None, asfFrame: Union[int, Tuple[int, int], Iterable[Union[int, Tuple[int, int]]]] = None, @@ -131,7 +130,7 @@ def query_cmr(session: ASFSession, url: str, translated_opts: dict, sub_query_co return items, hits, response.headers.get('CMR-Search-After', None) -def process_page(items: list[ASFProduct], max_results: int, subquery_max_results: int, total: int, subquery_count: int, opts: ASFSearchOptions): +def process_page(items: List[ASFProduct], max_results: int, subquery_max_results: int, total: int, subquery_count: int, opts: ASFSearchOptions): if max_results is None: last_page = ASFSearchResults(items[:min(subquery_max_results - subquery_count, len(items))], opts=opts) else: