Skip to content

Commit

Permalink
fix type annotations for 'tests/pruners_tests/test_successive_halving…
Browse files Browse the repository at this point in the history
….py' (optuna#5809)
  • Loading branch information
boringbyte authored Dec 1, 2024
1 parent feb9d0b commit 00134dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pruners_tests/test_successive_halving.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Tuple
from __future__ import annotations

import pytest

import optuna


@pytest.mark.parametrize("direction_value", [("minimize", 2), ("maximize", 0.5)])
def test_successive_halving_pruner_intermediate_values(direction_value: Tuple[str, float]) -> None:
def test_successive_halving_pruner_intermediate_values(direction_value: tuple[str, float]) -> None:
direction, intermediate_value = direction_value
pruner = optuna.pruners.SuccessiveHalvingPruner(
min_resource=1, reduction_factor=2, min_early_stopping_rate=0
Expand Down

0 comments on commit 00134dc

Please sign in to comment.