🎨 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:
parent
0cef4bd818
commit
b7286afd32
1 changed files with 2 additions and 1 deletions
|
|
@ -193,5 +193,6 @@ class TextSplitterVertex(Vertex):
|
||||||
# This built_object is a list of documents. Maybe we should
|
# This built_object is a list of documents. Maybe we should
|
||||||
# show how many documents are in the list?
|
# show how many documents are in the list?
|
||||||
if self._built_object:
|
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}()"
|
return f"{self.vertex_type}()"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue