File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ def __eq__(self, other):
92
92
and self .destination_arn == other .destination_arn
93
93
)
94
94
95
+ def __str__ (self ):
96
+ """Define string representation of `Edge`."""
97
+ return (str (self .__dict__ ))
98
+
95
99
96
100
class Vertex :
97
101
"""A vertex for a lineage graph."""
@@ -130,6 +134,10 @@ def __eq__(self, other):
130
134
and self .lineage_source == other .lineage_source
131
135
)
132
136
137
+ def __str__ (self ):
138
+ """Define string representation of `Vertex`."""
139
+ return (str (self .__dict__ ))
140
+
133
141
def to_lineage_object (self ):
134
142
"""Convert the ``Vertex`` object to its corresponding lineage object.
135
143
@@ -199,6 +207,12 @@ def __init__(
199
207
if vertices is not None :
200
208
self .vertices = vertices
201
209
210
+ def __str__ (self ):
211
+ """Define string representation of `LineageQueryResult`."""
212
+ result_dict = vars (self )
213
+
214
+ return (str ({k : [vars (val ) for val in v ] for k , v in result_dict .items ()}))
215
+
202
216
203
217
class LineageFilter (object ):
204
218
"""A filter used in a lineage query."""
You can’t perform that action at this time.
0 commit comments