Skip to content

Commit

Permalink
add type hint for values in calculate_rsd args
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Oviedo <[email protected]>
  • Loading branch information
OVI3D0 committed Oct 24, 2024
1 parent 4912799 commit c0a25c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osbenchmark/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c0a25c5

Please sign in to comment.