Skip to content

Commit

Permalink
fixup: heal lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Jan 15, 2025
1 parent 17520b9 commit d1c1c41
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/src/opentrons/protocol_engine/state/commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Protocol engine commands sub-state."""

from __future__ import annotations

import enum
Expand Down Expand Up @@ -304,7 +305,7 @@ def _handle_queue_command_action(self, action: QueueCommandAction) -> None:
# TODO(mc, 2021-06-22): mypy has trouble with this automatic
# request > command mapping, figure out how to type precisely
# (or wait for a future mypy version that can figure it out).
queued_command = action.request._CommandCls.model_construct( # type: ignore[call-arg]
queued_command = action.request._CommandCls.model_construct(
id=action.command_id,
key=(
action.request.key
Expand Down Expand Up @@ -506,7 +507,10 @@ def _handle_door_change_action(self, action: DoorChangeAction) -> None:
pass
case QueueStatus.RUNNING | QueueStatus.PAUSED:
self._state.queue_status = QueueStatus.PAUSED
case QueueStatus.AWAITING_RECOVERY | QueueStatus.AWAITING_RECOVERY_PAUSED:
case (
QueueStatus.AWAITING_RECOVERY
| QueueStatus.AWAITING_RECOVERY_PAUSED
):
self._state.queue_status = QueueStatus.AWAITING_RECOVERY_PAUSED
elif action.door_state == DoorState.CLOSED:
self._state.is_door_blocking = False
Expand Down

0 comments on commit d1c1c41

Please sign in to comment.