Skip to content

Commit 303465a

Browse files
committed
fix: add type annotation to tol
1 parent 2a8e1f8 commit 303465a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/nanops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ def check_below_min_count(
16081608
return False
16091609

16101610

1611-
def _zero_out_fperr(arg, tol):
1611+
def _zero_out_fperr(arg, tol: float | np.ndarray):
16121612
# #18044 reference this behavior to fix rolling skew/kurt issue
16131613
if isinstance(arg, np.ndarray):
16141614
return np.where(np.abs(arg) < tol, 0, arg)

0 commit comments

Comments
 (0)