Skip to content

Commit

Permalink
Merge pull request #5322 from aaravm/future
Browse files Browse the repository at this point in the history
Fix future annotations in `percentile.py`
  • Loading branch information
eukaryo committed Mar 29, 2024
2 parents 84a0c74 + fd59fd2 commit 39328aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions optuna/pruners/_percentile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations

from collections.abc import KeysView
import functools
import math
from typing import KeysView
from typing import List

import numpy as np

Expand All @@ -21,7 +22,7 @@ def _get_best_intermediate_result_over_steps(


def _get_percentile_intermediate_result_over_trials(
completed_trials: List["optuna.trial.FrozenTrial"],
completed_trials: list["optuna.trial.FrozenTrial"],
direction: StudyDirection,
step: int,
percentile: float,
Expand Down

0 comments on commit 39328aa

Please sign in to comment.