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: class Project:
"""Current project.""" """Current project."""
def __init__(self: Project, projects: Projects) -> None: def __init__(self, projects: Projects) -> None:
"""Set projects, branch, name, root & url.""" """Set projects, branch, name, root & url."""
self.projects = projects self.projects = projects
# branch # branch
@ -45,7 +45,7 @@ class Project:
# url # url
self.url = add_url_path(projects.url, self.name) self.url = add_url_path(projects.url, self.name)
def __str__(self: Project) -> str: def __str__(self) -> str:
"""List branch, name, root & url.""" """List branch, name, root & url."""
return f"""\ return f"""\
branch = {self.branch} branch = {self.branch}

View file

@ -20,7 +20,7 @@ SERVER_URL = [
class Projects: class Projects:
"""Other projects.""" """Other projects."""
def __init__(self: Projects) -> None: def __init__(self) -> None:
"""Set environment, group, name & url.""" """Set environment, group, name & url."""
self.environment = os.environ self.environment = os.environ
# group, name # group, name
@ -34,7 +34,7 @@ class Projects:
if value := self.environment.get(variable, None): if value := self.environment.get(variable, None):
self.url = add_url_path(value, self.group) self.url = add_url_path(value, self.group)
def __str__(self: Projects) -> str: def __str__(self) -> str:
"""List group, name & url.""" """List group, name & url."""
return f"""\ return f"""\
group = {self.group} group = {self.group}