Skip to content

Commit fdb00fd

Browse files
author
i.a.grebenkin
committed
fix(issue-606): pbounds type mismatch
1 parent b2258c2 commit fdb00fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bayes_opt/bayesian_optimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from bayes_opt.util import ensure_rng
2727

2828
if TYPE_CHECKING:
29-
from collections.abc import Callable, Mapping
29+
from collections.abc import Callable
3030

3131
from numpy.random import RandomState
3232
from numpy.typing import NDArray
@@ -85,7 +85,7 @@ class BayesianOptimization:
8585
def __init__(
8686
self,
8787
f: Callable[..., float] | None,
88-
pbounds: Mapping[str, tuple[float, float]],
88+
pbounds: BoundsMapping,
8989
acquisition_function: AcquisitionFunction | None = None,
9090
constraint: NonlinearConstraint | None = None,
9191
random_state: int | RandomState | None = None,

0 commit comments

Comments
 (0)