🔧 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:
parent
f84cd4026a
commit
a8900c429d
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue