Skip to content

Commit 824482a

Browse files
committed
Mypy fixes
1 parent 2a1d53c commit 824482a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

coloraide/algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3771,7 +3771,7 @@ def reshape(array: ArrayLike | float, new_shape: int | Shape) -> float | Array:
37713771
m = [] # type: Array
37723772
with ArrayBuilder(m, new_shape) as build:
37733773
# Create an iterator to traverse the data
3774-
for data in flatiter(array) if len(current_shape) > 1 else iter(array): # type: ignore[arg-type]
3774+
for data in flatiter(array) if len(current_shape) > 1 else iter(array):
37753775
next(build).append(data)
37763776

37773777
return m

coloraide/channels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __new__(
6666
limit = float
6767
# If a tuple of min/max is provided, create a function to clamp to the range
6868
elif isinstance(limit, tuple):
69-
limit = lambda x, l=limit: float(alg.clamp(x, l[0], l[1])) # type: ignore[misc]
69+
limit = lambda x, l=limit: float(alg.clamp(x, l[0], l[1]))
7070
obj.limit = limit
7171
obj.nans = nans
7272

0 commit comments

Comments
 (0)