From 091ae7de79715d2ac74e755bd34a7d7a71e91d63 Mon Sep 17 00:00:00 2001 From: Taher Chegini Date: Wed, 3 Jan 2024 15:46:03 -0500 Subject: [PATCH] MNT: Use py310 typing style. [skip ci] --- tests/test_hydrosignatures.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_hydrosignatures.py b/tests/test_hydrosignatures.py index 41452d3..b9f9eb3 100644 --- a/tests/test_hydrosignatures.py +++ b/tests/test_hydrosignatures.py @@ -1,8 +1,10 @@ -"""Tests for PyNHD package.""" +"""Tests for HydroSignatures package.""" +from __future__ import annotations + import io import json from pathlib import Path -from typing import Any, Dict, Tuple +from typing import Any import numpy as np import pandas as pd @@ -16,7 +18,7 @@ def assert_close(a: float, b: float) -> None: @pytest.fixture() -def datasets() -> Tuple[pd.Series, pd.Series, Dict[str, Any]]: +def datasets() -> tuple[pd.Series, pd.Series, dict[str, Any]]: df = pd.read_csv(Path("tests", "test_data.csv"), index_col=0, parse_dates=True) with Path("tests", "test_data.json").open("r") as f: sig_expected = json.load(f)