From d3d09445a06ed48b8b46433e86dd150a638255ae Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 15 Sep 2024 01:14:39 +0200 Subject: [PATCH] project/repr --- spcd/project.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spcd/project.py b/spcd/project.py index 6074e0d..89be501 100644 --- a/spcd/project.py +++ b/spcd/project.py @@ -45,6 +45,10 @@ class Project: # url self.url = add_url_path(projects.url, self.name) + def __repr__(self) -> str: + """List branch, name, root & url.""" + return f"Project(projects={self.projects!r})" + def __str__(self) -> str: """List branch, name, root & url.""" return f"""\