From 41a66bc736f93a57a4c7b464974ce556940d384e Mon Sep 17 00:00:00 2001 From: Matt Stone Date: Mon, 6 May 2024 09:45:40 -0400 Subject: [PATCH] fix: Add return type hint to Metric.read() --- 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 e9b91eee..33156397 100644 --- a/fgpyo/util/metric.py +++ b/fgpyo/util/metric.py @@ -161,7 +161,7 @@ def _parsers(cls) -> Dict[type, Callable[[str], Any]]: return {} @classmethod - def read(cls, path: Path, ignore_extra_fields: bool = True) -> Iterator[Any]: + def read(cls, path: Path, ignore_extra_fields: bool = True) -> Iterator["Metric[MetricType]"]: """Reads in zero or more metrics from the given path. The metric file must contain a matching header.