From eb85f1d462cb5ce2c73f63cd06b4720a27700097 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Wed, 12 Jun 2024 23:50:57 -0300 Subject: [PATCH] refactor: Update StrInput class to include default value Update the StrInput class in inputs.py to include a default value of an empty string. This change ensures consistency and improves the usability of the class. --- src/backend/base/langflow/inputs/inputs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/base/langflow/inputs/inputs.py b/src/backend/base/langflow/inputs/inputs.py index 4b3fc7038..9d91b6b59 100644 --- a/src/backend/base/langflow/inputs/inputs.py +++ b/src/backend/base/langflow/inputs/inputs.py @@ -25,6 +25,7 @@ class StrInput(BaseInputMixin, ListableInputMixin, DatabaseLoadMixin): # noqa: field_type: Optional[SerializableFieldTypes] = FieldTypes.TEXT load_from_db: StrictBoolean = False """Defines if the field will allow the user to open a text editor. Default is False.""" + value: Optional[str] = "" class MultilineInput(BaseInputMixin):