Skip to content

Commit 121daed

Browse files
committed
fix docstrings
1 parent 02bec70 commit 121daed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

skore/src/skore/_sklearn/_estimator/feature_importance_accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ def _check_metric(metric: Any) -> Scoring | None:
165165
result |= cast(dict[str, Callable], _check_metric(s))
166166
else:
167167
raise TypeError(
168-
"If scoring is a list or tuple, it must contain only strings; "
168+
"If metric is a list or tuple, it must contain only strings; "
169169
f"got {s} of type {type(s)}"
170170
)
171171
return result
172172
else:
173173
raise TypeError(
174-
"scoring must be a string, callable, list, tuple or dict; "
174+
"metric must be a string, callable, list, tuple or dict; "
175175
f"got {type(metric)}"
176176
)
177177

0 commit comments

Comments
 (0)