Skip to content

Commit f23a4ea

Browse files
authored
fix: Add return type hint to Metric.read() (#110)
1 parent 830cc25 commit f23a4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fgpyo/util/metric.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _parsers(cls) -> Dict[type, Callable[[str], Any]]:
161161
return {}
162162

163163
@classmethod
164-
def read(cls, path: Path, ignore_extra_fields: bool = True) -> Iterator[Any]:
164+
def read(cls, path: Path, ignore_extra_fields: bool = True) -> Iterator["Metric[MetricType]"]:
165165
"""Reads in zero or more metrics from the given path.
166166
167167
The metric file must contain a matching header.

0 commit comments

Comments
 (0)