Skip to content

Commit f9ee346

Browse files
committed
removed redundant comments
1 parent 8b0fc27 commit f9ee346

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pandas/core/arrays/interval.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,13 +2081,6 @@ 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-
# error: Argument 1 to "isin" has incompatible type
2085-
# "Union[ExtensionArray, ndarray[Any, Any],
2086-
# ndarray[Any, dtype[Any]]]"; expected
2087-
# "Union[_SupportsArray[dtype[Any]],
2088-
# _NestedSequence[_SupportsArray[dtype[Any]]], bool,
2089-
# int, float, complex, str, bytes, _NestedSequence[
2090-
# Union[bool, int, float, complex, str, bytes]]]"
20912084
return np.isin(left, right).ravel()
20922085

20932086
elif needs_i8_conversion(self.left.dtype) ^ needs_i8_conversion(
@@ -2140,8 +2133,6 @@ def _from_combined(self, combined: np.ndarray) -> IntervalArray:
21402133
return self._shallow_copy(left=new_left, right=new_right)
21412134

21422135
def unique(self) -> IntervalArray:
2143-
# No overload variant of "__getitem__" of "ExtensionArray" matches argument
2144-
# type "Tuple[slice, int]"
21452136
nc = unique(self._combined)
21462137
nc = nc[:, None]
21472138
return self._from_combined(nc)

0 commit comments

Comments
 (0)