Skip to content

Commit 2dda75a

Browse files
committed
mypy test failing
1 parent f9ee346 commit 2dda75a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/arrays/interval.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,7 +2081,7 @@ def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]:
20812081
# complex128 ndarray is much more performant.
20822082
left = self._combined
20832083
right = values._combined
2084-
return np.isin(left, right).ravel()
2084+
return np.isin(left, right).ravel() # type: ignore[arg-type]
20852085

20862086
elif needs_i8_conversion(self.left.dtype) ^ needs_i8_conversion(
20872087
values.left.dtype
@@ -2133,7 +2133,9 @@ def _from_combined(self, combined: np.ndarray) -> IntervalArray:
21332133
return self._shallow_copy(left=new_left, right=new_right)
21342134

21352135
def unique(self) -> IntervalArray:
2136-
nc = unique(self._combined)
2136+
nc = unique(
2137+
self._combined # type: ignore[call-overload]
2138+
)
21372139
nc = nc[:, None]
21382140
return self._from_combined(nc)
21392141

0 commit comments

Comments
 (0)