🔀 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:
parent
d31fe77d55
commit
7b238b44e7
1 changed files with 2 additions and 1 deletions
|
|
@ -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 😵💫"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue