Skip to content

Commit 784657b

Browse files
authored
Merge pull request #80 from fastlabel/develop
Merge to main
2 parents 539e807 + e7e6ad6 commit 784657b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

fastlabel/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,7 @@ def create_annotation(
12761276
value: str,
12771277
title: str,
12781278
color: str = None,
1279+
order: int = None,
12791280
attributes: list = []
12801281
) -> str:
12811282
"""
@@ -1297,6 +1298,8 @@ def create_annotation(
12971298
}
12981299
if color:
12991300
payload["color"] = color
1301+
if order:
1302+
payload["order"] = order
13001303
if attributes:
13011304
payload["attributes"] = attributes
13021305
return self.api.post_request(endpoint, payload=payload)
@@ -1322,6 +1325,7 @@ def update_annotation(
13221325
value: str = None,
13231326
title: str = None,
13241327
color: str = None,
1328+
order: int = None,
13251329
attributes: list = []
13261330
) -> str:
13271331
"""
@@ -1341,6 +1345,8 @@ def update_annotation(
13411345
payload["title"] = title
13421346
if color:
13431347
payload["color"] = color
1348+
if order:
1349+
payload["order"] = order
13441350
if attributes:
13451351
payload["attributes"] = attributes
13461352
return self.api.put_request(endpoint, payload=payload)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name="fastlabel",
11-
version="0.11.6",
11+
version="0.11.7",
1212
author="eisuke-ueta",
1313
author_email="[email protected]",
1414
description="The official Python SDK for FastLabel API, the Data Platform for AI",

0 commit comments

Comments
 (0)