File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2081,7 +2081,7 @@ def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]:
2081
2081
# complex128 ndarray is much more performant.
2082
2082
left = self ._combined
2083
2083
right = values ._combined
2084
- return np .isin (left , right ).ravel () # type: ignore[arg-type]
2084
+ return np .isin (left , right ).ravel ()
2085
2085
2086
2086
elif needs_i8_conversion (self .left .dtype ) ^ needs_i8_conversion (
2087
2087
values .left .dtype
@@ -2133,9 +2133,10 @@ def _from_combined(self, combined: np.ndarray) -> IntervalArray:
2133
2133
return self ._shallow_copy (left = new_left , right = new_right )
2134
2134
2135
2135
def unique (self ) -> IntervalArray :
2136
- nc = unique (
2137
- self ._combined # type: ignore[call-overload]
2138
- )
2136
+ nc = unique (self ._combined )
2137
+ # Ensure nc is a numpy array for _from_combined
2138
+ if not isinstance (nc , np .ndarray ):
2139
+ nc = np .asarray (nc )
2139
2140
nc = nc [:, None ]
2140
2141
return self ._from_combined (nc )
2141
2142
You can’t perform that action at this time.
0 commit comments