We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cf2e65 commit 9bef407Copy full SHA for 9bef407
fgpyo/util/metric.py
@@ -460,9 +460,7 @@ def __init__(
460
filepath: Path = filename if isinstance(filename, Path) else Path(filename)
461
file_format = MetricFileFormat(delimiter=delimiter)
462
463
- assert is_metric(
464
- metric_class
465
- ), "Metric class must be a dataclass- or attr-decorated subclass of `Metric`."
+ assert_is_metric(metric_class)
466
io.assert_path_is_writeable(filepath)
467
if append:
468
io.assert_path_is_readable(filepath)
0 commit comments