From b7286afd323983f88c1085c40294e516c25be525 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 2 Jun 2023 12:14:03 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(types.py):=20improve=20rea?= =?UTF-8?q?dability=20of=20return=20statement=20in=20TextSplitterVertex=20?= =?UTF-8?q?The=20return=20statement=20in=20TextSplitterVertex=20was=20impr?= =?UTF-8?q?oved=20to=20be=20more=20readable=20by=20adding=20a=20new=20line?= =?UTF-8?q?=20before=20the=20Documents=20field.=20This=20makes=20it=20easi?= =?UTF-8?q?er=20to=20read=20and=20understand=20the=20output=20of=20the=20f?= =?UTF-8?q?unction.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/graph/vertex/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/graph/vertex/types.py b/src/backend/langflow/graph/vertex/types.py index 4a3290c13..7d61f2393 100644 --- a/src/backend/langflow/graph/vertex/types.py +++ b/src/backend/langflow/graph/vertex/types.py @@ -193,5 +193,6 @@ class TextSplitterVertex(Vertex): # This built_object is a list of documents. Maybe we should # show how many documents are in the list? if self._built_object: - return f"""{self.vertex_type}({len(self._built_object)} documents)\nDocuments: {self._built_object[:3]}...""" + return f"""{self.vertex_type}({len(self._built_object)} documents) + \nDocuments: {self._built_object[:3]}...""" return f"{self.vertex_type}()"