Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ax/orchestration/tests/test_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# pyre-strict

from __future__ import annotations

import logging
import os
import re
Expand Down Expand Up @@ -514,9 +516,8 @@ def test_run_all_trials_callback(self) -> None:
),
db_settings=self.db_settings_if_always_needed,
)
trials_info = {"n_completed": 0}
trials_info: dict[str, int] = {"n_completed": 0}

# pyre-fixme[53]: Captured variable `trials_info` is not annotated.
def write_n_trials(orchestrator: Orchestrator) -> None:
trials_info["n_completed"] = len(orchestrator.experiment.trials)

Expand Down Expand Up @@ -556,9 +557,8 @@ def test_run_n_trials(self) -> None:
self.base_run_n_trials(None)

def test_run_n_trials_callback(self) -> None:
test_obj = [0, 0]
test_obj: list[int | str | None] = [0, 0]

# pyre-fixme[53]: Captured variable `test_obj` is not annotated.
def _callback(orchestrator: Orchestrator) -> None:
# pyrefly: ignore [unsupported-operation]
test_obj[0] = orchestrator._latest_optimization_start_timestamp
Expand Down
Loading