From d5a33d56bf838f3eb33a134ec2be3a98e7e8ebef Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 4 Aug 2023 00:19:52 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(component.py):=20remove?= =?UTF-8?q?=20unused=20build=20method=20from=20Component=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔥 refactor(custom_component.py): remove unused build method from CustomComponent class --- src/backend/langflow/interface/custom/component.py | 3 --- src/backend/langflow/interface/custom/custom_component.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/backend/langflow/interface/custom/component.py b/src/backend/langflow/interface/custom/component.py index e18be4fa2..0ba90650f 100644 --- a/src/backend/langflow/interface/custom/component.py +++ b/src/backend/langflow/interface/custom/component.py @@ -67,6 +67,3 @@ class Component(BaseModel): template_config["beta"] = ast.literal_eval(item_value) return template_config - - def build(self): - raise NotImplementedError diff --git a/src/backend/langflow/interface/custom/custom_component.py b/src/backend/langflow/interface/custom/custom_component.py index 4d65070bf..27c3340cf 100644 --- a/src/backend/langflow/interface/custom/custom_component.py +++ b/src/backend/langflow/interface/custom/custom_component.py @@ -189,6 +189,3 @@ class CustomComponent(Component, extra=Extra.allow): if not flow: raise ValueError(f"Flow {flow_name or flow_id} not found") return self.load_flow(flow.id, tweaks) - - def build(self): - raise NotImplementedError