From a8900c429d594197de1295b0c76c7f4636329dd4 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 5 Jul 2023 20:35:39 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(base.py):=20improve=20the?= =?UTF-8?q?=20representation=20of=20the=20built=20object=20in=20the=20Vert?= =?UTF-8?q?ex=20class=20The=20representation=20of=20the=20built=20object?= =?UTF-8?q?=20in=20the=20Vertex=20class=20has=20been=20improved=20to=20pro?= =?UTF-8?q?vide=20more=20meaningful=20information.=20Instead=20of=20return?= =?UTF-8?q?ing=20the=20actual=20object=20representation,=20it=20now=20retu?= =?UTF-8?q?rns=20"Built=20successfully"=20if=20the=20object=20has=20been?= =?UTF-8?q?=20built,=20or=20"Not=20built=20yet"=20if=20the=20object=20has?= =?UTF-8?q?=20not=20been=20built=20yet.=20This=20change=20enhances=20the?= =?UTF-8?q?=20clarity=20and=20readability=20of=20the=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/graph/vertex/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/graph/vertex/base.py b/src/backend/langflow/graph/vertex/base.py index ab3abec46..67fd4e005 100644 --- a/src/backend/langflow/graph/vertex/base.py +++ b/src/backend/langflow/graph/vertex/base.py @@ -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"