Skip to content

Commit

Permalink
Fix new mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jan 7, 2025
1 parent 1f463f2 commit e560c3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions coloraide/algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ def isclose(a: TensorLike, b: TensorLike, *, dims: DimHints | None = ..., **kwar
...


isclose = vectorize2(_isclose) # type: ignore[assignment]
isclose = vectorize2(_isclose)


@overload # type: ignore[no-overload-impl]
Expand All @@ -2042,7 +2042,7 @@ def isnan(a: TensorLike, *, dims: DimHints | None = ..., **kwargs: Any) -> Tenso
...


isnan = vectorize1(math.isnan) # type: ignore[assignment]
isnan = vectorize1(math.isnan)


def allclose(a: MathType, b: MathType, **kwargs: Any) -> bool:
Expand Down Expand Up @@ -2086,7 +2086,7 @@ def multiply(a: float | ArrayLike, b: TensorLike, *, dims: DimHints | None = ...
...


multiply = vectorize2(operator.mul, doc="Multiply two arrays or floats.") # type: ignore[assignment]
multiply = vectorize2(operator.mul, doc="Multiply two arrays or floats.")


@overload # type: ignore[no-overload-impl]
Expand Down Expand Up @@ -2124,7 +2124,7 @@ def divide(a: float | ArrayLike, b: TensorLike, *, dims: DimHints | None = ...)
...


divide = vectorize2(operator.truediv, doc="Divide two arrays or floats.") # type: ignore[assignment]
divide = vectorize2(operator.truediv, doc="Divide two arrays or floats.")


@overload # type: ignore[no-overload-impl]
Expand Down Expand Up @@ -2162,7 +2162,7 @@ def add(a: float | ArrayLike, b: TensorLike, *, dims: DimHints | None = ...) ->
...


add = vectorize2(operator.add, doc="Add two arrays or floats.") # type: ignore[assignment]
add = vectorize2(operator.add, doc="Add two arrays or floats.")


@overload # type: ignore[no-overload-impl]
Expand Down Expand Up @@ -2199,7 +2199,7 @@ def subtract(a: TensorLike, b: float | ArrayLike, *, dims: DimHints | None = ...
def subtract(a: float | ArrayLike, b: TensorLike, *, dims: DimHints | None = ...) -> Tensor:
...

subtract = vectorize2(operator.sub, doc="Subtract two arrays or floats.") # type: ignore[assignment]
subtract = vectorize2(operator.sub, doc="Subtract two arrays or floats.")


def full(array_shape: int | ShapeLike, fill_value: float | ArrayLike) -> Array:
Expand Down

0 comments on commit e560c3b

Please sign in to comment.