Skip to content

Commit

Permalink
CH-142 Fixes to try and get the code to not throw errors with python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
condar-metacell committed Aug 12, 2024
1 parent 6a550e7 commit 49f055e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/deployment-cli-tools/ch_cli_tools/skaffold.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 49f055e

Please sign in to comment.