Skip to content

Commit 29ffb7d

Browse files
authored
Merge pull request #660 from Labelbox/lgluszek/CCV-1501
[CCV-1501] Add two new attachment types - raw_text and text_file
2 parents 8c401d4 + 957225d commit 29ffb7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labelbox/schema/asset_attachment.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AssetAttachment(DbObject):
99
""" Asset attachment provides extra context about an asset while labeling.
1010
1111
Attributes:
12-
attachment_type (str): IMAGE, VIDEO, TEXT, IMAGE_OVERLAY, or HTML
12+
attachment_type (str): IMAGE, VIDEO, IMAGE_OVERLAY, HTML, RAW_TEXT, or TEXT_URL. TEXT attachment type is deprecated.
1313
attachment_value (str): URL to an external file or a string of text
1414
"""
1515

@@ -19,6 +19,8 @@ class AttachmentType(Enum):
1919
TEXT = "TEXT"
2020
IMAGE_OVERLAY = "IMAGE_OVERLAY"
2121
HTML = "HTML"
22+
RAW_TEXT = "RAW_TEXT"
23+
TEXT_URL = "TEXT_URL"
2224

2325
for topic in AttachmentType:
2426
vars()[topic.name] = topic.value

0 commit comments

Comments
 (0)