From 00df83b57c4b5293cc6a4064c983f3dcc9fdb0b1 Mon Sep 17 00:00:00 2001 From: MothNik Date: Tue, 9 Apr 2024 17:27:47 +0200 Subject: [PATCH] fix: fixed Python `<3.10` backwards compatibility issue in type hint --- tests/test_median.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_median.py b/tests/test_median.py index 8a7e1ee..dc42e59 100644 --- a/tests/test_median.py +++ b/tests/test_median.py @@ -1,4 +1,4 @@ -from typing import Optional, Union +from typing import Optional, Tuple, Union import numpy as np import pytest @@ -29,7 +29,7 @@ ], ) def test_median( - comb: tuple[Union[list, np.ndarray], bool, bool, Optional[float]], + comb: Tuple[Union[list, np.ndarray], bool, bool, Optional[float]], as_array: bool, ): x, low, high, expected = comb