Skip to content

Commit 9bef407

Browse files
committed
refactor: assertion
1 parent 7cf2e65 commit 9bef407

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fgpyo/util/metric.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,7 @@ def __init__(
460460
filepath: Path = filename if isinstance(filename, Path) else Path(filename)
461461
file_format = MetricFileFormat(delimiter=delimiter)
462462

463-
assert is_metric(
464-
metric_class
465-
), "Metric class must be a dataclass- or attr-decorated subclass of `Metric`."
463+
assert_is_metric(metric_class)
466464
io.assert_path_is_writeable(filepath)
467465
if append:
468466
io.assert_path_is_readable(filepath)

0 commit comments

Comments
 (0)