Skip to content

Commit 1869d88

Browse files
authored
[PLT-2228] Move to task queue task id to be optional with default as None for better type support (#1929)
1 parent 97bd850 commit 1869d88

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/labelbox/src/labelbox/schema/project.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,9 @@ def task_queues(self) -> List[TaskQueue]:
14031403
]
14041404

14051405
def move_data_rows_to_task_queue(
1406-
self, data_row_ids: DataRowIdentifiers, task_queue_id: str
1406+
self,
1407+
data_row_ids: DataRowIdentifiers,
1408+
task_queue_id: Optional[str] = None,
14071409
):
14081410
"""
14091411
@@ -1412,7 +1414,7 @@ def move_data_rows_to_task_queue(
14121414
Args:
14131415
data_row_ids: a list of data row ids to be moved. This should be a DataRowIdentifiers object
14141416
DataRowIdentifier objects are lists of ids or global keys. A DataIdentifier object can be a UniqueIds or GlobalKeys class.
1415-
task_queue_id: the task queue id to be moved to, or None to specify the "Done" queue
1417+
task_queue_id: the task queue id to be moved to, or None to specify the "Done" queue. Defaults to None.
14161418
14171419
Returns:
14181420
None if successful, or a raised error on failure

0 commit comments

Comments
 (0)