Skip to content

Commit

Permalink
Update domain_reduction.py
Browse files Browse the repository at this point in the history
Change type hinting from dict to Dict to allow for use with versions of python older than 3.9
  • Loading branch information
lm314 authored Oct 5, 2023
1 parent 4930dd1 commit 3aaacad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bayes_opt/domain_reduction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, Union, List
from typing import Optional, Union, List, Dict

import numpy as np
from .target_space import TargetSpace
Expand Down Expand Up @@ -28,7 +28,7 @@ def __init__(
gamma_osc: float = 0.7,
gamma_pan: float = 1.0,
eta: float = 0.9,
minimum_window: Optional[Union[List[float], float, dict[str, float]]] = 0.0
minimum_window: Optional[Union[List[float], float, Dict[str, float]]] = 0.0
) -> None:
self.gamma_osc = gamma_osc
self.gamma_pan = gamma_pan
Expand Down

0 comments on commit 3aaacad

Please sign in to comment.