🔀 chore(base.py): update _built_object_repr method to include emojis and more descriptive messages

The _built_object_repr method in the Vertex class has been updated to include emojis and more descriptive messages. The message "Built successfully " is now returned when the _built_object attribute is True, indicating that the object has been successfully built. On the other hand, the message "Failed to build 😵‍💫" is returned when the _built_object attribute is False, indicating that the object failed to build. This change improves the clarity and visual representation of the build status.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-06 15:25:05 -03:00
commit 7b238b44e7

View file

@ -226,4 +226,5 @@ class Vertex:
return id(self)
def _built_object_repr(self):
return "Built sucessfully" if self._built_object else "Not built yet"
# Add a message with an emoji, stars for sucess,
return "Built sucessfully ✨" if self._built_object else "Failed to build 😵‍💫"