From 3b6639084028008e9a35b8dca4823804f3b47a8d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 9 Jun 2024 20:04:29 +0200 Subject: [PATCH] linting --- cd/project.py | 8 +++++++- cd/projects.py | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) 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: