style(nodes, GenericNode): fix indentation and add line breaks for readability

This commit is contained in:
Gabriel Almeida 2023-05-17 14:46:36 -03:00
commit f6d977f139
3 changed files with 51 additions and 50 deletions

View file

@ -143,7 +143,8 @@ class DocumentLoaderNode(Node):
# 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.node_type}({len(self._built_object)} documents)\nDocuments: {self._built_object[:3]}..."""
return f"""{self.node_type}({len(self._built_object)} documents)
Documents: {self._built_object[:3]}..."""
return f"{self.node_type}()"