Skip to content

Commit 59bd617

Browse files
committed
tighten return type in any
1 parent 85c221a commit 59bd617

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pandas/core/generic.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10358,6 +10358,28 @@ def _logical_func(
1035810358
filter_type="bool",
1035910359
)
1036010360

10361+
@overload
10362+
def any(
10363+
self: DataFrame,
10364+
axis: Axis = ...,
10365+
bool_only: bool_t | None = ...,
10366+
skipna: bool_t = True,
10367+
level: Level | None = ...,
10368+
**kwargs,
10369+
) -> Series:
10370+
...
10371+
10372+
@overload
10373+
def any(
10374+
self: Series,
10375+
axis: Axis = ...,
10376+
bool_only: bool_t | None = ...,
10377+
skipna: bool_t = True,
10378+
level: Level | None = ...,
10379+
**kwargs,
10380+
) -> bool_t:
10381+
...
10382+
1036110383
def any(
1036210384
self,
1036310385
axis: Axis = 0,

0 commit comments

Comments
 (0)