From 66ff156cc86460946f7d7512380b7949bf5b2b63 Mon Sep 17 00:00:00 2001 From: Charles Graham SWT Date: Tue, 7 Oct 2025 16:44:47 -0500 Subject: [PATCH 1/2] Ensure backwards compat with 3.9, fix future | syntax to Optional --- cwms/timeseries/timeseries.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cwms/timeseries/timeseries.py b/cwms/timeseries/timeseries.py index 4d69a447..7598e340 100644 --- a/cwms/timeseries/timeseries.py +++ b/cwms/timeseries/timeseries.py @@ -148,11 +148,11 @@ def fetch_timeseries_chunks( chunks: List[Tuple[datetime, datetime]], ts_id: str, office_id: str, - unit: str | None, + unit: Optional[str], datum: Optional[str], - page_size: int | None, + page_size: Optional[int], version_date: Optional[datetime], - trim: bool | None, + trim: Optional[bool], max_workers: int, ) -> List[Data]: # Initialize an empty list to store results From cd8e62b47a41916ba382a80d18a6e650c4bfa53d Mon Sep 17 00:00:00 2001 From: Charles Graham SWT Date: Tue, 7 Oct 2025 16:45:24 -0500 Subject: [PATCH 2/2] Bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ceeb6566..2baae65a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "cwms-python" repository = "https://github.com/HydrologicEngineeringCenter/cwms-python" -version = "0.8.3" +version = "0.8.4" packages = [