Skip to content

Commit a3b5f1e

Browse files
authored
Merge pull request #139 from e10v/dev
chore: explicit type aliases
2 parents d5d979c + 90cc61c commit a3b5f1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tea_tasting/metrics/mean.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
if TYPE_CHECKING:
2525
from collections.abc import Callable
26-
from typing import Literal, TypeVar
26+
from typing import Literal, TypeAlias, TypeVar
2727

2828

2929
N = TypeVar("N", bound=float | int | None)
@@ -79,7 +79,7 @@ class MeanPowerResult(NamedTuple):
7979
rel_effect_size: float
8080
n_obs: float
8181

82-
MeanPowerResults = MetricPowerResults[MeanPowerResult]
82+
MeanPowerResults: TypeAlias = MetricPowerResults[MeanPowerResult]
8383

8484

8585
class RatioOfMeans( # noqa: D101

src/tea_tasting/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def __new__(
633633
instance.fill_zero_div = fill_zero_div
634634
return instance
635635

636-
Numeric = Float | Int
636+
Numeric: TypeAlias = Float | Int
637637

638638

639639
def numeric(

0 commit comments

Comments
 (0)