diff --git a/api/src/opentrons/protocol_engine/protocol_engine.py b/api/src/opentrons/protocol_engine/protocol_engine.py index edf095405ef..aa5ed5395d2 100644 --- a/api/src/opentrons/protocol_engine/protocol_engine.py +++ b/api/src/opentrons/protocol_engine/protocol_engine.py @@ -1,5 +1,4 @@ """ProtocolEngine class definition.""" -from contextlib import AsyncExitStack from logging import getLogger from typing import Dict, Optional, Union, AsyncGenerator, Callable from opentrons.protocol_engine.actions.actions import ( @@ -396,7 +395,7 @@ async def wait_until_complete(self) -> None: ) self._state_store.commands.raise_fatal_command_error() - async def finish( + async def finish( # noqa: C901 self, error: Optional[Exception] = None, drop_tips_after_run: bool = True,