From 4cab5f38945355224c2eb179b57f63c1e30068cb Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 16 Sep 2024 21:29:25 +0200 Subject: [PATCH] =?UTF-8?q?=E2=88=92repr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spcd/project.py | 4 ---- spcd/projects.py | 8 -------- 2 files changed, 12 deletions(-) diff --git a/spcd/project.py b/spcd/project.py index c295d57..6074e0d 100644 --- a/spcd/project.py +++ b/spcd/project.py @@ -45,10 +45,6 @@ class Project: # url self.url = add_url_path(projects.url, self.name) - def __repr__(self) -> str: - """Represent project.""" - return f"Project(projects={self.projects!r})" - def __str__(self) -> str: """List branch, name, root & url.""" return f"""\ diff --git a/spcd/projects.py b/spcd/projects.py index c64e3b3..b09e59b 100644 --- a/spcd/projects.py +++ b/spcd/projects.py @@ -34,14 +34,6 @@ class Projects: if value := self.environment.get(variable, None): self.url = add_url_path(value, self.group) - def __repr__(self) -> str: - """Represent projects. - - :return: representation - :rtype: str - """ - return "Projects()" - def __str__(self) -> str: """List group, name & url.