Skip to content

Commit

Permalink
Fix types_old
Browse files Browse the repository at this point in the history
  • Loading branch information
Uri Granta committed Jan 25, 2024
1 parent 498b17c commit 17864d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trieste/ask_tell_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,13 @@ def from_record(
# so the model was already trained
# thus there is no need to train it again

# type ignore below is due to the fact that overloads don't allow
# optional acquisition_rule along with acquisition_state
return cls(
# type ignore below is because this relies on subclasses not overriding __init__
# ones that do may also need to override this to get it to work
return cls( # type: ignore
search_space,
record.datasets,
record.models,
acquisition_rule=acquisition_rule, # type: ignore
acquisition_rule=acquisition_rule,
acquisition_state=record.acquisition_state,
fit_model=False,
)
Expand Down

0 comments on commit 17864d3

Please sign in to comment.