Skip to content

Commit

Permalink
fix type annotations for 'tests/hypervolume_tests/test_hssp.py'
Browse files Browse the repository at this point in the history
  • Loading branch information
boringbyte committed Dec 1, 2024
1 parent b29fdff commit 4548273
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 4548273

Please sign in to comment.