Skip to content

Commit 285ca33

Browse files
committed
Make type-checking happy
1 parent dc0b3e4 commit 285ca33

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mx_bluesky/hyperion/supervisor/_supervisor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def decode_and_execute(
4646
yield from self.check_external_callbacks_are_alive()
4747
except Exception as e:
4848
raise PlanError(f"Exception raised during plan execution: {e}") from e
49-
# TODO determine what is the instrument session for udc_default_state etc.
5049
instrument_session = current_visit or "NO_VISIT"
5150
try:
5251
if self._current_status == Status.ABORTING:

tests/system_tests/hyperion/supervisor/test_supervisor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def client_config() -> ApplicationConfig:
7272

7373

7474
def get_event_bus_client(supervisor: SupervisorRunner) -> EventBusClient:
75-
return supervisor.blueapi_client._events
75+
return supervisor.blueapi_client._events # type: ignore
7676

7777

7878
@pytest.fixture
@@ -149,6 +149,7 @@ def handle_abort(event_payload: AnyEvent, context: MessageContext):
149149
case WorkerEvent() as worker_event:
150150
if (
151151
worker_event.state == WorkerState.IDLE
152+
and worker_event.task_status
152153
and worker_event.task_status.task_complete
153154
and worker_event.task_status.task_failed
154155
):
@@ -234,7 +235,7 @@ def test_supervisor_raises_plan_error_when_external_callbacks_watchdog_expired(
234235
supervisor_runner_no_ping: SupervisorRunner,
235236
):
236237
runner = supervisor_runner_no_ping
237-
runner.EXTERNAL_CALLBACK_WATCHDOG_TIMER_S = 0.5
238+
runner.EXTERNAL_CALLBACK_WATCHDOG_TIMER_S = 0.5 # type: ignore
238239
runner.reset_callback_watchdog_timer()
239240
params = UDCCleanup.model_validate({"parameter_model_version": get_param_version()})
240241
# Allow callback watchdog to expire

0 commit comments

Comments
 (0)