Skip to content

Commit d24e994

Browse files
author
Andrei Neagu
committed
fixed typing
1 parent 277acc5 commit d24e994

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/service-integration/src/service_integration/cli/_compose_spec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import rich
77
import typer
88
import yaml
9-
from models_library.utils.labels_annotations import to_labels
9+
from models_library.utils.labels_annotations import LabelsAnnotationsDict, to_labels
1010
from rich.console import Console
1111
from 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()

packages/service-integration/src/service_integration/osparc_image_specs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from typing import Any
66

7+
from models_library.utils.labels_annotations import LabelsAnnotationsDict
78
from 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)

0 commit comments

Comments
 (0)