Skip to content

Commit

Permalink
Merge pull request optuna#5812 from boringbyte/fix/test_hssp.py
Browse files Browse the repository at this point in the history
Simplify type annotations for `tests/hypervolume_tests/test_hssp.py`
  • Loading branch information
not522 authored Dec 2, 2024
2 parents 5533741 + 4548273 commit 0b3cb12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/hypervolume_tests/test_hssp.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from __future__ import annotations

import itertools
import math
from typing import Tuple

import numpy as np
import pytest

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):
Expand Down

0 comments on commit 0b3cb12

Please sign in to comment.