From d730ca027cc7d52b0d6f25319c568f77c01808e1 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 8 Jun 2023 00:20:16 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(base.py):=20remove=20re?= =?UTF-8?q?dundant=20abstractmethod=20decorators=20The=20abstractmethod=20?= =?UTF-8?q?decorator=20is=20redundant=20in=20the=20CustomChain=20and=20Cus?= =?UTF-8?q?tomAgentExecutor=20classes=20as=20the=20methods=20they=20decora?= =?UTF-8?q?te=20are=20already=20defined=20as=20abstract=20in=20the=20paren?= =?UTF-8?q?t=20classes.=20Removing=20these=20decorators=20improves=20code?= =?UTF-8?q?=20readability=20and=20reduces=20clutter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/interface/base.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/langflow/interface/base.py b/src/backend/langflow/interface/base.py index fa7b39650..3670bb8ae 100644 --- a/src/backend/langflow/interface/base.py +++ b/src/backend/langflow/interface/base.py @@ -91,12 +91,10 @@ class CustomChain(Chain, ABC): """Custom chain""" @staticmethod - @abstractmethod def function_name(): return "CustomChain" @classmethod - @abstractmethod def initialize(cls, *args, **kwargs): pass @@ -111,12 +109,10 @@ class CustomAgentExecutor(AgentExecutor, ABC): """Custom chain""" @staticmethod - @abstractmethod def function_name(): return "CustomChain" @classmethod - @abstractmethod def initialize(cls, *args, **kwargs): pass