Skip to content

Commit 0b3cb12

Browse files
authored
Merge pull request optuna#5812 from boringbyte/fix/test_hssp.py
Simplify type annotations for `tests/hypervolume_tests/test_hssp.py`
2 parents 5533741 + 4548273 commit 0b3cb12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/hypervolume_tests/test_hssp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
from __future__ import annotations
2+
13
import itertools
24
import math
3-
from typing import Tuple
45

56
import numpy as np
67
import pytest
78

89
import optuna
910

1011

11-
def _compute_hssp_truth_and_approx(test_case: np.ndarray, subset_size: int) -> Tuple[float, float]:
12+
def _compute_hssp_truth_and_approx(test_case: np.ndarray, subset_size: int) -> tuple[float, float]:
1213
r = 1.1 * np.max(test_case, axis=0)
1314
truth = 0.0
1415
for subset in itertools.permutations(test_case, subset_size):

0 commit comments

Comments
 (0)