Skip to content

Commit af7ad87

Browse files
committed
Add RepoVersionInfo.__repr__()
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 6fde950 commit af7ad87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/frequenz/repo/config/version.py

+7
Original file line numberDiff line numberDiff line change
@@ -516,3 +516,10 @@ def is_branch_latest(self) -> bool:
516516
)
517517
return False
518518
return branch == latest[0]
519+
520+
def __repr__(self) -> str:
521+
"""Return a string representation of the object."""
522+
return (
523+
f"{self.__class__.__name__}(sha={self._sha!r}, ref={self._ref!r}, "
524+
f"tags={self._tags!r}, branches={self._branches!r})"
525+
)

0 commit comments

Comments
 (0)