Skip to content

Commit 1426dba

Browse files
committed
fix NameError and AttributeError
1 parent 0845269 commit 1426dba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package/samplers/value_at_risk/sampler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from typing import Any
45
from typing import cast
56
from typing import TYPE_CHECKING
@@ -11,6 +12,7 @@
1112
from optuna._gp import optim_mixed
1213
from optuna._gp import prior
1314
from optuna._gp import search_space as gp_search_space
15+
import optuna._gp.acqf
1416
from optuna.samplers._base import _CONSTRAINTS_KEY
1517
from optuna.samplers._base import _INDEPENDENT_SAMPLING_WARNING_TEMPLATE
1618
from optuna.samplers._base import _process_constraints_after_trial
@@ -23,7 +25,6 @@
2325

2426

2527
if TYPE_CHECKING:
26-
from collections.abc import Callable
2728
from collections.abc import Sequence
2829

2930
from optuna.distributions import BaseDistribution

0 commit comments

Comments
 (0)