Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions labelbox/schema/asset_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@


class AssetAttachment(DbObject):
""" Asset attachment provides extra context about an asset while labeling.
"""Asset attachment provides extra context about an asset while labeling.

Attributes:
attachment_type (str): IMAGE, VIDEO, IMAGE_OVERLAY, HTML, RAW_TEXT, or TEXT_URL. TEXT attachment type is deprecated.
attachment_type (str): IMAGE, VIDEO, IMAGE_OVERLAY, HTML, RAW_TEXT, TEXT_URL, or PDF_URL. TEXT attachment type is deprecated.
attachment_value (str): URL to an external file or a string of text
"""

Expand All @@ -32,6 +32,7 @@ def __missing__(cls, value: object):
HTML = "HTML"
RAW_TEXT = "RAW_TEXT"
TEXT_URL = "TEXT_URL"
PDF_URL = "PDF_URL"

for topic in AttachmentType:
vars()[topic.name] = topic.value
Expand Down