Skip to content

Commit 9098d14

Browse files
kashifkhanKashif Khan
and
Kashif Khan
authored
Fix pre-commit error (#44988)
Co-authored-by: Kashif Khan <[email protected]>
1 parent 079289c commit 9098d14

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/core/nanops.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,14 +1391,10 @@ def _maybe_arg_null_out(
13911391
if axis is None or not getattr(result, "ndim", False):
13921392
if skipna:
13931393
if mask.all():
1394-
# error: Incompatible types in assignment (expression has type
1395-
# "int", variable has type "ndarray")
1396-
result = -1 # type: ignore[assignment]
1394+
return -1
13971395
else:
13981396
if mask.any():
1399-
# error: Incompatible types in assignment (expression has type
1400-
# "int", variable has type "ndarray")
1401-
result = -1 # type: ignore[assignment]
1397+
return -1
14021398
else:
14031399
if skipna:
14041400
na_mask = mask.all(axis)

0 commit comments

Comments
 (0)