🎨 style(types.py): improve readability of return statement in TextSplitterVertex

The return statement in TextSplitterVertex was improved to be more readable by adding a new line before the Documents field. This makes it easier to read and understand the output of the function.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-02 12:14:03 -03:00
commit b7286afd32

View file

@ -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}()"