Skip to content

Commit cc7d603

Browse files
jbrockmendelclaude
andcommitted
fix mypy: add new_index parameter to NDFrame._slice base method
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 416c411 commit cc7d603

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pandas/core/generic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4334,7 +4334,9 @@ def _getitem_slice(self, key: slice) -> Self:
43344334
slobj = indexer
43354335
return self._slice(slobj)
43364336

4337-
def _slice(self, slobj: slice, axis: AxisInt = 0) -> Self:
4337+
def _slice(
4338+
self, slobj: slice, axis: AxisInt = 0, new_index: Index | None = None
4339+
) -> Self:
43384340
"""
43394341
Construct a slice of this container.
43404342

0 commit comments

Comments
 (0)