From cd3f6c4c52767e7fdf1ef53bc0dadd0692154788 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 30 Jun 2024 11:51:09 -0300 Subject: [PATCH] chore: fix lint errors (#2445) * chore: Fix type hinting in ConditionalRouterComponent * refactor: Update PassComponent to PassMessageComponent --- .../base/langflow/components/prototypes/ConditionalRouter.py | 4 ++-- src/backend/base/langflow/components/prototypes/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/base/langflow/components/prototypes/ConditionalRouter.py b/src/backend/base/langflow/components/prototypes/ConditionalRouter.py index 07c8103f0..6d24bfa5e 100644 --- a/src/backend/base/langflow/components/prototypes/ConditionalRouter.py +++ b/src/backend/base/langflow/components/prototypes/ConditionalRouter.py @@ -70,7 +70,7 @@ class ConditionalRouterComponent(Component): return self.message else: self.stop("true_result") - return None + return None # type: ignore def false_response(self) -> Message: result = self.evaluate_condition(self.input_text, self.match_text, self.operator, self.case_sensitive) @@ -79,4 +79,4 @@ class ConditionalRouterComponent(Component): return self.message else: self.stop("false_result") - return None + return None # type: ignore diff --git a/src/backend/base/langflow/components/prototypes/__init__.py b/src/backend/base/langflow/components/prototypes/__init__.py index 89c14f7e9..252d1a1c5 100644 --- a/src/backend/base/langflow/components/prototypes/__init__.py +++ b/src/backend/base/langflow/components/prototypes/__init__.py @@ -2,7 +2,7 @@ from .ConditionalRouter import ConditionalRouterComponent from .FlowTool import FlowToolComponent from .Listen import ListenComponent from .Notify import NotifyComponent -from .Pass import PassComponent +from .Pass import PassMessageComponent from .PythonFunction import PythonFunctionComponent from .RunFlow import RunFlowComponent from .RunnableExecutor import RunnableExecComponent @@ -16,7 +16,7 @@ __all__ = [ "FlowToolComponent", "ListenComponent", "NotifyComponent", - "PassComponent", + "PassMessageComponent", "PythonFunctionComponent", "RunFlowComponent", "RunnableExecComponent",