From d7bdcd44ec372795afdbaeea5023d3b8859bbf71 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Wed, 15 May 2024 13:26:43 -0400 Subject: [PATCH] Oops, forgot RTPBase. --- api/src/opentrons/protocol_engine/types.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/src/opentrons/protocol_engine/types.py b/api/src/opentrons/protocol_engine/types.py index a7a9e5f0a04..77ab6231b71 100644 --- a/api/src/opentrons/protocol_engine/types.py +++ b/api/src/opentrons/protocol_engine/types.py @@ -885,12 +885,14 @@ def from_hw_state(cls, state: HwTipStateType) -> "TipPresenceStatus": class RTPBase(BaseModel): """Parameters defined in a protocol.""" - displayName: str = Field(..., description="Display string for the parameter.") - variableName: str = Field(..., description="Python variable name of the parameter.") - description: Optional[str] = Field( + displayName: StrictStr = Field(..., description="Display string for the parameter.") + variableName: StrictStr = Field( + ..., description="Python variable name of the parameter." + ) + description: Optional[StrictStr] = Field( None, description="Detailed description of the parameter." ) - suffix: Optional[str] = Field( + suffix: Optional[StrictStr] = Field( None, description="Units (like mL, mm/sec, etc) or a custom suffix for the parameter.", )