Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit 9ec171fa authored by ANDREY Paul's avatar ANDREY Paul
Browse files

Fix a typo in 'MetricSet.from_specs' error messages.

parent 5881c22a
No related branches found
No related tags found
No related merge requests found
Pipeline #950720 passed
...@@ -129,8 +129,8 @@ class MetricSet: ...@@ -129,8 +129,8 @@ class MetricSet:
metrics = cls(metrics) metrics = cls(metrics)
if not isinstance(metrics, cls): if not isinstance(metrics, cls):
raise TypeError( raise TypeError(
"'metrics' should be a `{cls.name}`, a valid list of Metric " f"'metrics' should be a `{cls.__name__}`, a valid list of "
"instances and/or specs to wrap into one, or None." "Metric instances and/or specs to wrap into one, or None."
) )
return metrics return metrics
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment