We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b886131 commit 4e69b43Copy full SHA for 4e69b43
packages/models-library/src/models_library/utils/labels_annotations.py
@@ -28,7 +28,7 @@ def to_labels(
28
"""converts config into labels annotations"""
29
30
# FIXME: null is loaded as 'null' string value? is that correct? json -> None upon deserialization?
31
- labels = {}
+ labels: LabelsAnnotationsDict = {}
32
for key, value in config.items():
33
if trim_key_head:
34
if isinstance(value, str):
@@ -57,7 +57,7 @@ def from_labels(
57
for key, label in labels.items():
58
if key.startswith(f"{prefix_key}."):
59
try:
60
- value = json.loads(label)
+ value = json.loads(label) # type: ignore
61
except JSONDecodeError:
62
value = label
63
0 commit comments