From 40776f36cae3675e7cc1801f96da272f45f27626 Mon Sep 17 00:00:00 2001 From: Josh McVey Date: Thu, 29 Aug 2024 16:16:30 -0500 Subject: [PATCH] typing thing --- .../files/templates/partial_tip_rtp.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/analyses-snapshot-testing/files/templates/partial_tip_rtp.py b/analyses-snapshot-testing/files/templates/partial_tip_rtp.py index 6aa47d44455..ab08ac2fd44 100644 --- a/analyses-snapshot-testing/files/templates/partial_tip_rtp.py +++ b/analyses-snapshot-testing/files/templates/partial_tip_rtp.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import Optional +from typing import Any, Optional, Union from opentrons.protocol_api import SINGLE, COLUMN, PARTIAL_COLUMN, ROW metadata = { @@ -13,6 +13,11 @@ } ####### RTP DEFINITIONS ####### +# NozzleConfigurationType is from opentrons.hardware_control.nozzle_manager import NozzleConfigurationType +# do not want to import that as that interface or location might change +# type is not in shared-data +# cannot do the below +# ApiTipConfigType = Union[SINGLE, COLUMN, PARTIAL_COLUMN, ROW] @dataclass @@ -23,7 +28,7 @@ class PartialTipConfig: description: str starting_tip: str starting_nozzle: str - api_tip_config: str + api_tip_config: Any api_start: str api_end: Optional[str]