We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5d979c + 90cc61c commit a3b5f1eCopy full SHA for a3b5f1e
src/tea_tasting/metrics/mean.py
@@ -23,7 +23,7 @@
23
24
if TYPE_CHECKING:
25
from collections.abc import Callable
26
- from typing import Literal, TypeVar
+ from typing import Literal, TypeAlias, TypeVar
27
28
29
N = TypeVar("N", bound=float | int | None)
@@ -79,7 +79,7 @@ class MeanPowerResult(NamedTuple):
79
rel_effect_size: float
80
n_obs: float
81
82
-MeanPowerResults = MetricPowerResults[MeanPowerResult]
+MeanPowerResults: TypeAlias = MetricPowerResults[MeanPowerResult]
83
84
85
class RatioOfMeans( # noqa: D101
src/tea_tasting/utils.py
@@ -633,7 +633,7 @@ def __new__(
633
instance.fill_zero_div = fill_zero_div
634
return instance
635
636
-Numeric = Float | Int
+Numeric: TypeAlias = Float | Int
637
638
639
def numeric(
0 commit comments