From 400fefeecc8ad4335e3a8f908dab154943d2b890 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 14 Sep 2024 15:55:12 +0200 Subject: [PATCH] self/:useless --- spcd/project.py | 4 ++-- spcd/projects.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spcd/project.py b/spcd/project.py index 709d554..6074e0d 100644 --- a/spcd/project.py +++ b/spcd/project.py @@ -27,7 +27,7 @@ ROOT = [ class Project: """Current project.""" - def __init__(self: Project, projects: Projects) -> None: + def __init__(self, projects: Projects) -> None: """Set projects, branch, name, root & url.""" self.projects = projects # branch @@ -45,7 +45,7 @@ class Project: # url self.url = add_url_path(projects.url, self.name) - def __str__(self: Project) -> str: + def __str__(self) -> str: """List branch, name, root & url.""" return f"""\ branch = {self.branch} diff --git a/spcd/projects.py b/spcd/projects.py index c1f2403..27b0334 100644 --- a/spcd/projects.py +++ b/spcd/projects.py @@ -20,7 +20,7 @@ SERVER_URL = [ class Projects: """Other projects.""" - def __init__(self: Projects) -> None: + def __init__(self) -> None: """Set environment, group, name & url.""" self.environment = os.environ # group, name @@ -34,7 +34,7 @@ class Projects: if value := self.environment.get(variable, None): self.url = add_url_path(value, self.group) - def __str__(self: Projects) -> str: + def __str__(self) -> str: """List group, name & url.""" return f"""\ group = {self.group}