File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/service-integration/src/service_integration Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 66import rich
77import typer
88import yaml
9- from models_library .utils .labels_annotations import to_labels
9+ from models_library .utils .labels_annotations import LabelsAnnotationsDict , to_labels
1010from rich .console import Console
1111from yarl import URL
1212
@@ -93,7 +93,7 @@ def create_docker_compose_image_spec(
9393 rich .print ("No runtime config found (optional), using default." )
9494
9595 # OCI annotations (optional)
96- extra_labels = {}
96+ extra_labels : LabelsAnnotationsDict = {}
9797 try :
9898 oci_spec = yaml .safe_load (
9999 (config_basedir / f"{ OCI_LABEL_PREFIX } .yml" ).read_text ()
Original file line number Diff line number Diff line change 44
55from typing import Any
66
7+ from models_library .utils .labels_annotations import LabelsAnnotationsDict
78from service_integration .compose_spec_model import (
89 BuildItem ,
910 ComposeSpecification ,
@@ -21,7 +22,7 @@ def create_image_spec(
2122 docker_compose_overwrite_cfg : DockerComposeOverwriteConfig ,
2223 runtime_cfg : RuntimeConfig | None = None ,
2324 * ,
24- extra_labels : dict [ str , str ] | None = None ,
25+ extra_labels : LabelsAnnotationsDict | None = None ,
2526 ** _context
2627) -> ComposeSpecification :
2728 """Creates the image-spec provided the osparc-config and a given context (e.g. development)
You can’t perform that action at this time.
0 commit comments