From 6d886b3eb288a1cf96addcccff1d3b6c7c73dde6 Mon Sep 17 00:00:00 2001 From: facelessuser Date: Thu, 24 Oct 2024 20:46:13 -0600 Subject: [PATCH] Fix mypy --- coloraide/algebra.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coloraide/algebra.py b/coloraide/algebra.py index ebc0f439..afffa175 100644 --- a/coloraide/algebra.py +++ b/coloraide/algebra.py @@ -100,7 +100,7 @@ def round_half_up(n: float, scale: int = 0) -> float: def round_to(f: float, p: int = 0, half_up: bool = True) -> float: """Round to the specified precision using "half up" rounding.""" - _round = round_half_up if half_up else round # type: Callable[..., float] # type: ignore[assignment] + _round = round_half_up if half_up else round # type: Callable[..., float] # Do no rounding, just return a float with full precision if p == -1: @@ -2235,7 +2235,7 @@ def ndindex(*s: ShapeLike) -> Iterator[tuple[int, ...]]: """Iterate dimensions.""" yield from it.product( - *(range(d) for d in (s[0] if not isinstance(s[0], int) and len(s) == 1 else s)) # type: ignore[call-overload] + *(range(d) for d in (s[0] if not isinstance(s[0], int) and len(s) == 1 else s)) # type: ignore[arg-type] )