Skip to content

Commit

Permalink
chore: fix lint errors (#2445)
Browse files Browse the repository at this point in the history
* chore: Fix type hinting in ConditionalRouterComponent

* refactor: Update PassComponent to PassMessageComponent
  • Loading branch information
ogabrielluiz authored Jun 30, 2024
1 parent cfdfa0f commit a428d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def true_response(self) -> Message:
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)
Expand All @@ -79,4 +79,4 @@ def false_response(self) -> Message:
return self.message
else:
self.stop("false_result")
return None
return None # type: ignore
4 changes: 2 additions & 2 deletions src/backend/base/langflow/components/prototypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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
Expand All @@ -16,7 +16,7 @@
"FlowToolComponent",
"ListenComponent",
"NotifyComponent",
"PassComponent",
"PassMessageComponent",
"PythonFunctionComponent",
"RunFlowComponent",
"RunnableExecComponent",
Expand Down

0 comments on commit a428d16

Please sign in to comment.