From 4f2a4ce13c84a38f2f189b56ca44e5c1e18bc5e5 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 3 Nov 2023 11:11:30 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(custom=5Fcomponent.py):=20?= =?UTF-8?q?refactor=20class=20variables=20to=20use=20assignment=20instead?= =?UTF-8?q?=20of=20type=20annotations=20for=20better=20readability=20and?= =?UTF-8?q?=20consistency?= 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 7f7dd588a..b275127ee 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: ClassVar[str] = "Custom Component" - description: ClassVar[str] = "Custom Component" + display_name = "Custom Component" + description = "Custom Component" code: Optional[str] = None field_config: dict = {} code_class_base_inheritance: ClassVar[Dict] = "CustomComponent"