Skip to content

Commit de161fd

Browse files
author
Yi-Ting Lee
committed
feature: add __str__ methods to queryLineage output classes
1 parent a3bca30 commit de161fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sagemaker/lineage/query.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __eq__(self, other):
9393
)
9494

9595
def __str__(self):
96-
"""Define string representation of `Edge`."""
96+
"""Define string representation of ``Edge``."""
9797
return (str(self.__dict__))
9898

9999

@@ -135,7 +135,7 @@ def __eq__(self, other):
135135
)
136136

137137
def __str__(self):
138-
"""Define string representation of `Vertex`."""
138+
"""Define string representation of ``Vertex``."""
139139
return (str(self.__dict__))
140140

141141
def to_lineage_object(self):
@@ -208,7 +208,7 @@ def __init__(
208208
self.vertices = vertices
209209

210210
def __str__(self):
211-
"""Define string representation of `LineageQueryResult`."""
211+
"""Define string representation of ``LineageQueryResult``."""
212212
result_dict = vars(self)
213213
return (str({k: [vars(val) for val in v] for k, v in result_dict.items()}))
214214

0 commit comments

Comments
 (0)