Skip to content

Commit 97b2655

Browse files
Add type parameter to df.drop()
1 parent 3db439d commit 97b2655

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -697,35 +697,35 @@ class DataFrame(NDFrame, OpsMixin):
697697
@overload
698698
def drop(
699699
self,
700-
labels: Hashable | Sequence[Hashable] | Index = ...,
700+
labels: Hashable | Sequence[Hashable] | Index[Any] = ...,
701701
*,
702702
axis: Axis = ...,
703-
index: Hashable | Sequence[Hashable] | Index = ...,
704-
columns: Hashable | Sequence[Hashable] | Index = ...,
703+
index: Hashable | Sequence[Hashable] | Index[Any] = ...,
704+
columns: Hashable | Sequence[Hashable] | Index[Any] = ...,
705705
level: Level | None = ...,
706706
inplace: Literal[True],
707707
errors: IgnoreRaise = ...,
708708
) -> None: ...
709709
@overload
710710
def drop(
711711
self,
712-
labels: Hashable | Sequence[Hashable] | Index = ...,
712+
labels: Hashable | Sequence[Hashable] | Index[Any] = ...,
713713
*,
714714
axis: Axis = ...,
715-
index: Hashable | Sequence[Hashable] | Index = ...,
716-
columns: Hashable | Sequence[Hashable] | Index = ...,
715+
index: Hashable | Sequence[Hashable] | Index[Any] = ...,
716+
columns: Hashable | Sequence[Hashable] | Index[Any] = ...,
717717
level: Level | None = ...,
718718
inplace: Literal[False] = ...,
719719
errors: IgnoreRaise = ...,
720720
) -> DataFrame: ...
721721
@overload
722722
def drop(
723723
self,
724-
labels: Hashable | Sequence[Hashable] | Index = ...,
724+
labels: Hashable | Sequence[Hashable] | Index[Any] = ...,
725725
*,
726726
axis: Axis = ...,
727-
index: Hashable | Sequence[Hashable] | Index = ...,
728-
columns: Hashable | Sequence[Hashable] | Index = ...,
727+
index: Hashable | Sequence[Hashable] | Index[Any] = ...,
728+
columns: Hashable | Sequence[Hashable] | Index[Any] = ...,
729729
level: Level | None = ...,
730730
inplace: bool = ...,
731731
errors: IgnoreRaise = ...,

0 commit comments

Comments
 (0)