From cb6a328747ba3c203d914b156f36de0761416577 Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Wed, 4 Sep 2024 01:32:50 +0330 Subject: [PATCH] Change an annotation for the sake of M1 python3.8 --- ignite/metrics/metric_group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ignite/metrics/metric_group.py b/ignite/metrics/metric_group.py index 72398d464d4..f6c21a604af 100644 --- a/ignite/metrics/metric_group.py +++ b/ignite/metrics/metric_group.py @@ -1,4 +1,4 @@ -from typing import Any, Callable, Dict, Sequence +from typing import Any, Callable, Dict, Sequence, Tuple import torch @@ -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