Skip to content

Commit faceaa6

Browse files
committed
TYP: Remove unnecessary typeignore
After bumping numpy
1 parent 21cd80e commit faceaa6

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

mizani/_colors/_colormaps/_interpolated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _generate_colors(self, x: FloatArrayLike) -> Sequence[RGBHexColor]:
4545
arr = np.column_stack(
4646
[self._r_lookup[idx], self._g_lookup[idx], self._b_lookup[idx]],
4747
)
48-
return [rgb_to_hex(c) for c in arr] # pyright: ignore[reportArgumentType]
48+
return [rgb_to_hex(c) for c in arr]
4949

5050

5151
@dataclass

mizani/_colors/_colormaps/_segment_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ def _generate_colors(self, x: FloatArrayLike) -> Sequence[RGBHexColor]:
3939
self.data["green"](x),
4040
]
4141
)
42-
return [rgb_to_hex(c) for c in arr] # pyright: ignore[reportArgumentType]
42+
return [rgb_to_hex(c) for c in arr]

mizani/_timedelta/breaks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def numeric_to_timedelta(self, values: NDArrayFloat) -> TimedeltaArrayLike:
205205

206206
else:
207207
units = SI_LOOKUP_INV[self._units]
208-
return [timedelta(**{units: x}) for x in values] # pyright: ignore[reportArgumentType]
208+
return [timedelta(**{units: x}) for x in values]
209209

210210
def get_scaling_factor(self, units):
211211
if self.package == "pandas":

mizani/labels.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,7 @@ class label_ordinal:
782782

783783
def __call__(self, x: FloatArrayLike) -> Sequence[str]:
784784
labels = [
785-
ordinal(num, self.prefix, self.suffix, self.big_mark) # pyright: ignore[reportArgumentType]
786-
for num in x
785+
ordinal(num, self.prefix, self.suffix, self.big_mark) for num in x
787786
]
788787
return labels
789788

0 commit comments

Comments
 (0)