Skip to content

Commit

Permalink
fix: fixed Python <3.10 backwards compatibility issue in type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
MothNik committed Apr 9, 2024
1 parent 299ef0f commit 00df83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_median.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, Union
from typing import Optional, Tuple, Union

import numpy as np
import pytest
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 00df83b

Please sign in to comment.