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 cc97cb1 commit be39213Copy full SHA for be39213
labelbox/schema/asset_attachment.py
@@ -42,12 +42,12 @@ def __missing__(cls, value: object):
42
43
@classmethod
44
def validate_attachment_json(cls, attachment_json: Dict[str, str]) -> None:
45
- for required_key in ["type", "value"]:
+ for required_key in ['type', 'value']:
46
if required_key not in attachment_json:
47
raise ValueError(
48
f"Must provide a `{required_key}` key for each attachment. Found {attachment_json}."
49
)
50
- cls.validate_attachment_type(attachment_json["type"])
+ cls.validate_attachment_type(attachment_json['type'])
51
52
53
def validate_attachment_type(cls, attachment_type: str) -> None:
0 commit comments