Skip to content

Commit 035630d

Browse files
committed
fix: 3.8 compatible Dict typing
1 parent 89a1edc commit 035630d

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
@@ -380,7 +380,7 @@ def is_attrs_instance(metric: Metric) -> TypeGuard[inspect.AttrsInstance]:
380380
return not isclass(metric) and attr.has(metric.__class__)
381381

382382

383-
def asdict(metric: Metric) -> dict[str, Any]:
383+
def asdict(metric: Metric) -> Dict[str, Any]:
384384
"""
385385
Convert a Metric instance to a dictionary.
386386

0 commit comments

Comments
 (0)