Skip to content

Commit 4e6616d

Browse files
Fix unexpected-keyword-arg pylint warning
1 parent 2ddbb2f commit 4e6616d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

frouros/detectors/data_drift/batch/statistical_test/mann_whitney_u.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ def _statistical_test(
4343
self, X_ref: np.ndarray, X: np.ndarray, **kwargs # noqa: N803
4444
) -> StatisticalResult:
4545
test = mannwhitneyu(
46-
x=X_ref, y=X, alternative="two-sided", nan_policy="raise", **kwargs
46+
x=X_ref,
47+
y=X,
48+
alternative="two-sided",
49+
nan_policy="raise", # pylint=unexpected-keyword-arg
50+
**kwargs,
51+
)
52+
test = StatisticalResult(
53+
statistic=test.statistic,
54+
p_value=test.pvalue,
4755
)
48-
test = StatisticalResult(statistic=test.statistic, p_value=test.pvalue)
4956
return test

0 commit comments

Comments
 (0)