🔧 chore(base.py): improve the representation of the built object in the Vertex class

The representation of the built object in the Vertex class has been improved to provide more meaningful information. Instead of returning the actual object representation, it now returns "Built successfully" if the object has been built, or "Not built yet" if the object has not been built yet. This change enhances the clarity and readability of the code.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-05 20:35:39 -03:00
commit a8900c429d

View file

@ -226,4 +226,4 @@ class Vertex:
return id(self)
def _built_object_repr(self):
return repr(self._built_object)
return "Built sucessfully" if self._built_object else "Not built yet"