Skip to content

Commit e9d0a92

Browse files
committed
type:ignore
1 parent 0cefeb2 commit e9d0a92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/internals/blocks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ def getitem_block_index(self, slicer: slice) -> Block:
345345
346346
Assumes self.ndim == 2
347347
"""
348-
new_values = self.values[..., slicer]
348+
# error: Invalid index type "Tuple[ellipsis, slice]" for
349+
# "Union[ndarray, ExtensionArray]"; expected type "Union[int, slice, ndarray]"
350+
new_values = self.values[..., slicer] # type: ignore[index]
349351
return type(self)._simple_new(new_values, self._mgr_locs, ndim=self.ndim)
350352

351353
@final

0 commit comments

Comments
 (0)