Skip to content

Commit 03b51af

Browse files
committed
Fix indexing typing error
1 parent 021cc5a commit 03b51af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def __setitem__(self, key, value) -> None:
914914
indexer = self._get_setitem_indexer(key)
915915
self._has_valid_setitem_indexer(key)
916916

917-
iloc = self if self.name == "iloc" else self.obj.iloc
917+
iloc: _iLocIndexer = cast("_iLocIndexer", self) if self.name == "iloc" else self.obj.iloc
918918
iloc._setitem_with_indexer(indexer, value, self.name)
919919

920920
def _validate_key(self, key, axis: AxisInt) -> None:

0 commit comments

Comments
 (0)