Skip to content

Commit

Permalink
MNT: Use py310 typing style. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Jan 3, 2024
1 parent b884a78 commit 091ae7d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_hydrosignatures.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 091ae7d

Please sign in to comment.