From af8094721fda15ea65da762966c3e63a87491dc8 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 3 Nov 2023 12:05:21 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(custom=5Fcomponent.py):=20?= =?UTF-8?q?refactor=20display=5Fname=20and=20description=20attributes=20to?= =?UTF-8?q?=20be=20optional=20and=20provide=20default=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/interface/custom/custom_component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/interface/custom/custom_component.py b/src/backend/langflow/interface/custom/custom_component.py index 63bb67f8d..825d18e1b 100644 --- a/src/backend/langflow/interface/custom/custom_component.py +++ b/src/backend/langflow/interface/custom/custom_component.py @@ -15,8 +15,8 @@ import yaml class CustomComponent(Component, extra="allow"): - display_name = "Custom Component" - description = "Custom Component" + display_name: Optional[str] = "Custom Component" + description: Optional[str] = "Custom Component" code: Optional[str] = None field_config: dict = {} code_class_base_inheritance: ClassVar[str] = "CustomComponent"