self/:useless
This commit is contained in:
parent
4bd86a8880
commit
400fefeecc
2 changed files with 4 additions and 4 deletions
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue