self/:useless

This commit is contained in:
Marc Beninca 2024-09-14 15:55:12 +02:00
parent 4bd86a8880
commit 400fefeecc
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 4 additions and 4 deletions

View file

@ -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}

View file

@ -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}