Skip to content

Commit

Permalink
Merge pull request #139 from e10v/dev
Browse files Browse the repository at this point in the history
chore: explicit type aliases
  • Loading branch information
e10v authored Feb 16, 2025
2 parents d5d979c + 90cc61c commit a3b5f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tea_tasting/metrics/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

if TYPE_CHECKING:
from collections.abc import Callable
from typing import Literal, TypeVar
from typing import Literal, TypeAlias, TypeVar


N = TypeVar("N", bound=float | int | None)
Expand Down Expand Up @@ -79,7 +79,7 @@ class MeanPowerResult(NamedTuple):
rel_effect_size: float
n_obs: float

MeanPowerResults = MetricPowerResults[MeanPowerResult]
MeanPowerResults: TypeAlias = MetricPowerResults[MeanPowerResult]


class RatioOfMeans( # noqa: D101
Expand Down
2 changes: 1 addition & 1 deletion src/tea_tasting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def __new__(
instance.fill_zero_div = fill_zero_div
return instance

Numeric = Float | Int
Numeric: TypeAlias = Float | Int


def numeric(
Expand Down

0 comments on commit a3b5f1e

Please sign in to comment.