From 45482732e41ec41a719f452051c74276503c0e77 Mon Sep 17 00:00:00 2001 From: boringbyte Date: Sun, 1 Dec 2024 07:38:07 -0500 Subject: [PATCH] fix type annotations for 'tests/hypervolume_tests/test_hssp.py' --- tests/hypervolume_tests/test_hssp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/hypervolume_tests/test_hssp.py b/tests/hypervolume_tests/test_hssp.py index 48f86271e1..25d297145c 100644 --- a/tests/hypervolume_tests/test_hssp.py +++ b/tests/hypervolume_tests/test_hssp.py @@ -1,6 +1,7 @@ +from __future__ import annotations + import itertools import math -from typing import Tuple import numpy as np import pytest @@ -8,7 +9,7 @@ import optuna -def _compute_hssp_truth_and_approx(test_case: np.ndarray, subset_size: int) -> Tuple[float, float]: +def _compute_hssp_truth_and_approx(test_case: np.ndarray, subset_size: int) -> tuple[float, float]: r = 1.1 * np.max(test_case, axis=0) truth = 0.0 for subset in itertools.permutations(test_case, subset_size):