Skip to content

Commit

Permalink
Fix type problems found by latest mypy
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TedBrookings committed Nov 27, 2023
1 parent 66b2200 commit fbd8c4d
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 @@ -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.
Expand Down

0 comments on commit fbd8c4d

Please sign in to comment.