Skip to content

Commit

Permalink
Fix pre-commit error (pandas-dev#44988)
Browse files Browse the repository at this point in the history
Co-authored-by: Kashif Khan <[email protected]>
  • Loading branch information
kashifkhan and Kashif Khan authored Dec 22, 2021
1 parent 079289c commit 9098d14
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pandas/core/nanops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1391,14 +1391,10 @@ def _maybe_arg_null_out(
if axis is None or not getattr(result, "ndim", False):
if skipna:
if mask.all():
# error: Incompatible types in assignment (expression has type
# "int", variable has type "ndarray")
result = -1 # type: ignore[assignment]
return -1
else:
if mask.any():
# error: Incompatible types in assignment (expression has type
# "int", variable has type "ndarray")
result = -1 # type: ignore[assignment]
return -1
else:
if skipna:
na_mask = mask.all(axis)
Expand Down

0 comments on commit 9098d14

Please sign in to comment.