From fbd8c4dee25153a77f0df7c14f5ebb023aca4f8d Mon Sep 17 00:00:00 2001 From: Ted Brookings Date: Wed, 15 Nov 2023 13:37:18 -0500 Subject: [PATCH] Fix type problems found by latest mypy Closes #73 * Move to current latest version of pytest to avoid deprecation warning * Move to current latest version of mypy * Correct multiple problems with type and import flagged by newer mypy --- fgpyo/util/metric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fgpyo/util/metric.py b/fgpyo/util/metric.py index 9cda23ee..72907d1b 100644 --- a/fgpyo/util/metric.py +++ b/fgpyo/util/metric.py @@ -226,7 +226,7 @@ def parse(cls, fields: List[str]) -> Any: return inspect.attr_from(cls=cls, kwargs=dict(zip(header, fields)), parsers=parsers) @classmethod - def write(cls, path: Path, *values: MetricType) -> None: + def write(cls, path: Path, *values: "Metric") -> None: """Writes zero or more metrics to the given path. The header will always be written.