Skip to content

Commit 0c0153c

Browse files
ignore warnings
1 parent c1e8fea commit 0c0153c

File tree

1 file changed

+4
-4
lines changed
  • packages/models-library/src/models_library

1 file changed

+4
-4
lines changed

packages/models-library/src/models_library/docker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def from_key(cls, key: str) -> "DockerLabelKey":
6363
_UNDEFINED_LABEL_VALUE_INT: Final[str] = "0"
6464

6565

66-
DOCKER_TASK_EC2_INSTANCE_TYPE_PLACEMENT_CONSTRAINT_KEY: Final[
67-
DockerLabelKey
68-
] = TypeAdapter(DockerLabelKey).validate_python("ec2-instance-type")
66+
DOCKER_TASK_EC2_INSTANCE_TYPE_PLACEMENT_CONSTRAINT_KEY: Final[DockerLabelKey] = (
67+
TypeAdapter(DockerLabelKey).validate_python("ec2-instance-type")
68+
)
6969

7070

7171
def to_simcore_runtime_docker_label_key(key: str) -> DockerLabelKey:
@@ -143,7 +143,7 @@ def to_simcore_runtime_docker_labels(self) -> dict[DockerLabelKey, str]:
143143
"""returns a dictionary of strings as required by docker"""
144144
return {
145145
to_simcore_runtime_docker_label_key(k): f"{v}"
146-
for k, v in sorted(self.model_dump().items())
146+
for k, v in sorted(self.model_dump(warnings=False).items())
147147
}
148148

149149
@classmethod

0 commit comments

Comments
 (0)