diff --git a/ax/adapter/tests/test_torch_adapter.py b/ax/adapter/tests/test_torch_adapter.py index adfc19ddc1a..dbc01252113 100644 --- a/ax/adapter/tests/test_torch_adapter.py +++ b/ax/adapter/tests/test_torch_adapter.py @@ -1227,6 +1227,7 @@ def test_pairwise_preference_generator(self) -> None: parameter_names = list(experiment.parameters.keys()) outcomes = [assert_is_instance(Keys.PAIRWISE_PREFERENCE_QUERY.value, str)] + # pyrefly: ignore [unbound-name] datasets, _, candidate_metadata = pmb._convert_experiment_data( experiment_data=pmb._training_data, outcomes=outcomes, diff --git a/ax/early_stopping/strategies/base.py b/ax/early_stopping/strategies/base.py index 57a99e993ab..afdcd22e66e 100644 --- a/ax/early_stopping/strategies/base.py +++ b/ax/early_stopping/strategies/base.py @@ -323,6 +323,7 @@ def _log_and_return_interval_boundary( next_boundary = curr_boundary + interval reason = ( + # pyrefly: ignore [invalid-argument] f"Trial has not crossed an interval boundary. " f"Progressed from {prev_progression:.2f} to {curr_progression:.2f}; " f"both are in the same interval [{curr_boundary:.2f}, " diff --git a/ax/generation_strategy/tests/test_generation_strategy.py b/ax/generation_strategy/tests/test_generation_strategy.py index 4a6c22f8a9c..9238ecfaf97 100644 --- a/ax/generation_strategy/tests/test_generation_strategy.py +++ b/ax/generation_strategy/tests/test_generation_strategy.py @@ -1873,6 +1873,7 @@ def test_node_gs_with_auto_transitions_three_phase(self) -> None: self.assertEqual(trial.generator_runs[2]._generation_node_name, "sobol_3") # after running the next trial should be made from sobol 4 + # pyrefly: ignore [unbound-name] trial.run() trial = exp.new_batch_trial(generator_runs=gs_2.gen(exp)[0]) self.assertEqual(trial.generator_runs[0]._generation_node_name, "sobol_4")