Skip to content

Commit

Permalink
Change an annotation for the sake of M1 python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra-barikbin committed Sep 3, 2024
1 parent bbfc4c7 commit cb6a328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ignite/metrics/metric_group.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Callable, Dict, Sequence
from typing import Any, Callable, Dict, Sequence, Tuple

import torch

Expand Down Expand Up @@ -36,7 +36,7 @@ class MetricGroup(Metric):
state.metrics["eval_metrics"]
"""

_state_dict_all_req_keys: tuple[str, ...] = ("metrics",)
_state_dict_all_req_keys: Tuple[str, ...] = ("metrics",)

def __init__(self, metrics: Dict[str, Metric], output_transform: Callable = lambda x: x):
self.metrics = metrics
Expand Down

0 comments on commit cb6a328

Please sign in to comment.