Skip to content

Commit 6435b77

Browse files
[PLT-331] Support for PDF_URL attachment type (#1440)
2 parents 771f7ec + be39213 commit 6435b77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

labelbox/schema/asset_attachment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88

99
class AssetAttachment(DbObject):
10-
""" Asset attachment provides extra context about an asset while labeling.
10+
"""Asset attachment provides extra context about an asset while labeling.
1111
1212
Attributes:
13-
attachment_type (str): IMAGE, VIDEO, IMAGE_OVERLAY, HTML, RAW_TEXT, or TEXT_URL. TEXT attachment type is deprecated.
13+
attachment_type (str): IMAGE, VIDEO, IMAGE_OVERLAY, HTML, RAW_TEXT, TEXT_URL, or PDF_URL. TEXT attachment type is deprecated.
1414
attachment_value (str): URL to an external file or a string of text
1515
"""
1616

@@ -32,6 +32,7 @@ def __missing__(cls, value: object):
3232
HTML = "HTML"
3333
RAW_TEXT = "RAW_TEXT"
3434
TEXT_URL = "TEXT_URL"
35+
PDF_URL = "PDF_URL"
3536

3637
for topic in AttachmentType:
3738
vars()[topic.name] = topic.value

0 commit comments

Comments
 (0)