(self, i: int | tuple[int, int] | tuple[slice, int])
| 959 | return self.values.shape |
| 960 | |
| 961 | def iget(self, i: int | tuple[int, int] | tuple[slice, int]) -> np.ndarray: |
| 962 | # In the case where we have a tuple[slice, int], the slice will always |
| 963 | # be slice(None) |
| 964 | # Note: only reached with self.ndim == 2 |
| 965 | # Invalid index type "Union[int, Tuple[int, int], Tuple[slice, int]]" |
| 966 | # for "Union[ndarray[Any, Any], ExtensionArray]"; expected type |
| 967 | # "Union[int, integer[Any]]" |
| 968 | return self.values[i] # type: ignore[index] |
| 969 | |
| 970 | def _slice( |
| 971 | self, slicer: slice | npt.NDArray[np.bool_] | npt.NDArray[np.intp] |
no outgoing calls