Skip to content

Commit

Permalink
fix: Add return type hint to Metric.read()
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed May 6, 2024
1 parent dd82a34 commit 41a66bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fgpyo/util/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 41a66bc

Please sign in to comment.