Skip to content

Commit

Permalink
doc: clarify that asdict does not format values
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed Jun 4, 2024
1 parent fc6d2ba commit ad13758
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fgpyo/util/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ def asdict(metric: Metric) -> Dict[str, Any]:
"""
Convert a Metric instance to a dictionary.
No formatting is performed on the values, and they are returned as contained (and typed) in the
underlying dataclass. Use `Metric.format_value` to format the values to string.
Args:
metric: An instance of a Metric.
Expand Down

0 comments on commit ad13758

Please sign in to comment.