Skip to content

Commit e415282

Browse files
committed
add comment about why one UnknownIndex needs to stay (!)
1 parent 375f630 commit e415282

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,8 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
16861686
@property
16871687
def iloc(self) -> _iLocIndexerFrame[Self]: ...
16881688
@property
1689+
# mypy complains if we use Index[Any] instead of UnknownIndex here, even though
1690+
# the latter is aliased to the former ¯\_(ツ)_/¯.
16891691
def index(self) -> UnknownIndex: ...
16901692
@index.setter
16911693
def index(self, idx: Index) -> None: ...

0 commit comments

Comments
 (0)