From 49f055e2c44a9c6be3d37df97f8889feaa049a8b Mon Sep 17 00:00:00 2001 From: Jake Conkerton-Darby Date: Mon, 12 Aug 2024 16:21:39 +0100 Subject: [PATCH] CH-142 Fixes to try and get the code to not throw errors with python 3.9 --- tools/deployment-cli-tools/ch_cli_tools/skaffold.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/deployment-cli-tools/ch_cli_tools/skaffold.py b/tools/deployment-cli-tools/ch_cli_tools/skaffold.py index 17ce64f9..7f6ade95 100644 --- a/tools/deployment-cli-tools/ch_cli_tools/skaffold.py +++ b/tools/deployment-cli-tools/ch_cli_tools/skaffold.py @@ -37,9 +37,9 @@ def get_image_tag(name): def build_artifact( image_name: str, context_path: str, - requirements: list[str] | None = None, + requirements: list[str] = None, dockerfile_path: str = '', - additional_build_args: dict[str, str] | None = None, + additional_build_args: dict[str, str] = None, ) -> dict: build_args = { 'REGISTRY': helm_values.registry.name, @@ -71,8 +71,8 @@ def process_build_dockerfile( dockerfile_path: str, root_path: str, global_context: bool = False, - requirements: list[str] | None = None, - app_name: str | None = None + requirements: list[str] = None, + app_name: str = None ) -> None: if app_name is None: app_name = app_name_from_path(basename(dockerfile_path)) @@ -278,7 +278,7 @@ def get_image_tag(name): json.dump(vs_conf, f, indent=2, sort_keys=True) -def get_additional_build_args(helm_values: dict, app_key: str) -> dict[str, str] | None: +def get_additional_build_args(helm_values: dict, app_key: str) -> dict[str, str]: if app_key not in helm_values.apps: return None