diff --git a/cd/project.py b/cd/project.py index 51971d1..bdb2426 100644 --- a/cd/project.py +++ b/cd/project.py @@ -1,4 +1,10 @@ +from __future__ import annotations + from pathlib import Path +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from cd.projects import Projects BRANCH = [ "GITHUB_REF_NAME", @@ -15,7 +21,7 @@ ROOT = [ class Project: - def __init__(self, projects) -> None: + def __init__(self: Project, projects: Projects) -> None: self.projects = projects # branch for variable in BRANCH: diff --git a/cd/projects.py b/cd/projects.py index 9094c20..a1ca31f 100644 --- a/cd/projects.py +++ b/cd/projects.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from pathlib import Path GROUP_AND_NAME = [ @@ -11,7 +13,7 @@ SERVER_URL = [ class Projects: - def __init__(self, environment) -> None: + def __init__(self: Projects, environment) -> None: self.environment = environment # group, name for variable in GROUP_AND_NAME: