Skip to content

Commit 076efc0

Browse files
committed
add overload def for NDFrame input
1 parent 389cb03 commit 076efc0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pandas/core/generic.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10380,6 +10380,17 @@ def any(
1038010380
) -> bool_t:
1038110381
...
1038210382

10383+
@overload
10384+
def any(
10385+
self: NDFrame,
10386+
axis: Axis = ...,
10387+
bool_only: bool_t | None = ...,
10388+
skipna: bool_t = ...,
10389+
level: Level | None = ...,
10390+
**kwargs,
10391+
) -> Series | bool_t:
10392+
...
10393+
1038310394
def any(
1038410395
self,
1038510396
axis: Axis = 0,

0 commit comments

Comments
 (0)