Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions fastlabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,7 @@ def create_annotation(
value: str,
title: str,
color: str = None,
order: int = None,
attributes: list = []
) -> str:
"""
Expand All @@ -1297,6 +1298,8 @@ def create_annotation(
}
if color:
payload["color"] = color
if order:
payload["order"] = order
if attributes:
payload["attributes"] = attributes
return self.api.post_request(endpoint, payload=payload)
Expand All @@ -1322,6 +1325,7 @@ def update_annotation(
value: str = None,
title: str = None,
color: str = None,
order: int = None,
attributes: list = []
) -> str:
"""
Expand All @@ -1341,6 +1345,8 @@ def update_annotation(
payload["title"] = title
if color:
payload["color"] = color
if order:
payload["order"] = order
if attributes:
payload["attributes"] = attributes
return self.api.put_request(endpoint, payload=payload)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="fastlabel",
version="0.11.6",
version="0.11.7",
author="eisuke-ueta",
author_email="eisuke.ueta@fastlabel.ai",
description="The official Python SDK for FastLabel API, the Data Platform for AI",
Expand Down