From e64e7d5f2df4b5d256feef27cf1b1eb92e30078c Mon Sep 17 00:00:00 2001 From: Gabefire <33893811+Gabefire@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:52:56 -0600 Subject: [PATCH 1/4] adjusted optional task_queue_id --- libs/labelbox/src/labelbox/schema/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/labelbox/src/labelbox/schema/project.py b/libs/labelbox/src/labelbox/schema/project.py index 929afc729..52d08de5c 100644 --- a/libs/labelbox/src/labelbox/schema/project.py +++ b/libs/labelbox/src/labelbox/schema/project.py @@ -1403,7 +1403,7 @@ def task_queues(self) -> List[TaskQueue]: ] def move_data_rows_to_task_queue( - self, data_row_ids: DataRowIdentifiers, task_queue_id: str + self, data_row_ids: DataRowIdentifiers, task_queue_id: Optional[str] = None ): """ From ba4c5dfc3fcfe3a0f23dc614b1cf68ed8697659a Mon Sep 17 00:00:00 2001 From: Gabefire <33893811+Gabefire@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:56:49 -0600 Subject: [PATCH 2/4] fixed linter --- libs/labelbox/src/labelbox/schema/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/labelbox/src/labelbox/schema/project.py b/libs/labelbox/src/labelbox/schema/project.py index 52d08de5c..2a8132835 100644 --- a/libs/labelbox/src/labelbox/schema/project.py +++ b/libs/labelbox/src/labelbox/schema/project.py @@ -1403,7 +1403,9 @@ def task_queues(self) -> List[TaskQueue]: ] def move_data_rows_to_task_queue( - self, data_row_ids: DataRowIdentifiers, task_queue_id: Optional[str] = None + self, + data_row_ids: DataRowIdentifiers, + task_queue_id: Optional[str] = None, ): """ From 1af3e795fbf9f2f4f148dcf611ef91e1e52e6bad Mon Sep 17 00:00:00 2001 From: Gabefire <33893811+Gabefire@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:18:09 -0600 Subject: [PATCH 3/4] adjusted --- libs/labelbox/src/labelbox/schema/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/labelbox/src/labelbox/schema/project.py b/libs/labelbox/src/labelbox/schema/project.py index 2a8132835..f30461b60 100644 --- a/libs/labelbox/src/labelbox/schema/project.py +++ b/libs/labelbox/src/labelbox/schema/project.py @@ -1405,7 +1405,7 @@ def task_queues(self) -> List[TaskQueue]: def move_data_rows_to_task_queue( self, data_row_ids: DataRowIdentifiers, - task_queue_id: Optional[str] = None, + task_queue_id: Union[str, None], ): """ From 40e79c4ff822b59f1b0a6894317b07550af11ce9 Mon Sep 17 00:00:00 2001 From: Gabefire <33893811+Gabefire@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:26:13 -0600 Subject: [PATCH 4/4] added in feedback --- libs/labelbox/src/labelbox/schema/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/labelbox/src/labelbox/schema/project.py b/libs/labelbox/src/labelbox/schema/project.py index f30461b60..c3dfc48ff 100644 --- a/libs/labelbox/src/labelbox/schema/project.py +++ b/libs/labelbox/src/labelbox/schema/project.py @@ -1405,7 +1405,7 @@ def task_queues(self) -> List[TaskQueue]: def move_data_rows_to_task_queue( self, data_row_ids: DataRowIdentifiers, - task_queue_id: Union[str, None], + task_queue_id: Optional[str] = None, ): """ @@ -1414,7 +1414,7 @@ def move_data_rows_to_task_queue( Args: data_row_ids: a list of data row ids to be moved. This should be a DataRowIdentifiers object DataRowIdentifier objects are lists of ids or global keys. A DataIdentifier object can be a UniqueIds or GlobalKeys class. - task_queue_id: the task queue id to be moved to, or None to specify the "Done" queue + task_queue_id: the task queue id to be moved to, or None to specify the "Done" queue. Defaults to None. Returns: None if successful, or a raised error on failure