Skip to content

Commit 2924d09

Browse files
committed
fix typing
1 parent 9a337f9 commit 2924d09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autointent/nodes/_optimization/_node_optimizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ def fit(self, context: Context) -> None:
107107
self._logger.info("%s node optimization is finished! saving best assets", self.node_info.node_type)
108108
# TODO refactor the following code (via implementing `autointent.load_module(path)` utility)
109109
trial_idx = context.optimization_info.get_best_trial_idx(self.node_type)
110-
trial = context.optimization_info.trials.get_trial(self.node_type, trial_idx)
111-
module_type, module_kwargs = scored_modules[trial_idx]
110+
trial = context.optimization_info.trials.get_trial(self.node_type, trial_idx) # type: ignore[arg-type]
111+
module_type, module_kwargs = scored_modules[trial_idx] # type: ignore[index]
112112
best_module: Module = module_type(**module_kwargs)
113-
best_module.load(trial.module_dump_dir)
113+
best_module.load(trial.module_dump_dir) # type: ignore[arg-type]
114114
context.optimization_info.artifacts.add_artifact(self.node_type, best_module.get_artifact(context))
115115

116116
def get_module_dump_dir(self, dump_dir: Path, module_name: str, j_combination: int) -> str:

0 commit comments

Comments
 (0)