From c0a25c5206625c05789713b5e595a08981874276 Mon Sep 17 00:00:00 2001 From: Michael Oviedo Date: Thu, 24 Oct 2024 18:58:30 +0000 Subject: [PATCH] add type hint for values in calculate_rsd args Signed-off-by: Michael Oviedo --- osbenchmark/aggregator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbenchmark/aggregator.py b/osbenchmark/aggregator.py index 137a237a..37582f4b 100644 --- a/osbenchmark/aggregator.py +++ b/osbenchmark/aggregator.py @@ -214,7 +214,7 @@ def calculate_weighted_average(self, task_metrics: Dict[str, List[Any]], iterati return weighted_metrics - def calculate_rsd(self, values, metric_name: str): + def calculate_rsd(self, values: List[Union[int, float]], metric_name: str): if not values: raise ValueError(f"Cannot calculate RSD for metric '{metric_name}': empty list of values") if len(values) == 1: