We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 079289c commit 9098d14Copy full SHA for 9098d14
pandas/core/nanops.py
@@ -1391,14 +1391,10 @@ def _maybe_arg_null_out(
1391
if axis is None or not getattr(result, "ndim", False):
1392
if skipna:
1393
if mask.all():
1394
- # error: Incompatible types in assignment (expression has type
1395
- # "int", variable has type "ndarray")
1396
- result = -1 # type: ignore[assignment]
+ return -1
1397
else:
1398
if mask.any():
1399
1400
1401
1402
1403
1404
na_mask = mask.all(axis)
0 commit comments