-
-
Notifications
You must be signed in to change notification settings - Fork 692
CI - Fix pyrefly error in ignite/metrics/cohen_kappa.py #3494
Copy link
Copy link
Closed
Description
Fix pyrefly error:
INFO Checking project configured at `/home/runner/work/ignite/ignite/pyrefly.toml`
ERROR Argument `str | None` is not assignable to parameter `weights` with type `Literal['linear', 'quadratic'] | None` in function `sklearn.metrics._classification.cohen_kappa_score` [bad-argument-type]
--> ignite/metrics/cohen_kappa.py:87:58
|
87 | return cohen_kappa_score(y_true, y_pred, weights=self.weights)
| ^^^^^^^^^^^^
|
Error: Argument `str | None` is not assignable to parameter `weights` with type `Literal['linear', 'quadratic'] | None` in function `sklearn.metrics._classification.cohen_kappa_score`
Reactions are currently unavailable