From be88181f9e88a267a184740bf0dcf6d52ff5f684 Mon Sep 17 00:00:00 2001 From: Pablo San Pietro Date: Mon, 26 Oct 2026 10:53:56 -0300 Subject: [PATCH] [PLT-4720] [PLT-4721] Explain LabelVersion.stage for SENT_TO_REWORK - For SENT_TO_REWORK, stage is the step the data row was moved out of, so None means it was moved from Done. The rework step it entered is not recorded. Jira: https://labelbox.atlassian.net/browse/PLT-4720, https://labelbox.atlassian.net/browse/PLT-4721 Co-Authored-By: Claude Opus 5.5 --- libs/labelbox/src/labelbox/schema/label_version.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libs/labelbox/src/labelbox/schema/label_version.py b/libs/labelbox/src/labelbox/schema/label_version.py index 91c1519d7..af9f8c454 100644 --- a/libs/labelbox/src/labelbox/schema/label_version.py +++ b/libs/labelbox/src/labelbox/schema/label_version.py @@ -44,12 +44,13 @@ class LabelVersionAction(str, Enum): REJECTED = "REJECTED" #: The data row was submitted from a rework step. REWORK_SUBMITTED = "REWORK_SUBMITTED" - #: The data row was moved into a rework step by hand. + #: The data row was moved into a rework step by hand. ``stage`` is the + #: step it was moved out of. SENT_TO_REWORK = "SENT_TO_REWORK" class LabelVersionStage(_CamelCaseMixin): - """The workflow step a label version was recorded in, as it was then. + """The workflow step the data row was in at the hand-off, as it was then. Attributes: task_queue_id (str): The step's task queue ID. @@ -77,7 +78,10 @@ class LabelVersion(_CamelCaseMixin): created_by_id (str): The user who made the hand-off: the labeler for a submit, the reviewer for a review save or decision. stage (Optional[LabelVersionStage]): The workflow step the data row - was in. ``None`` when it was in none (Done). + was in at the hand-off. ``None`` when it was in none (Done). For + ``SENT_TO_REWORK`` this is the step the row was moved out of, so + ``None`` means it was moved from Done; the rework step it entered + is not recorded. annotation_count (int): Number of annotations in the version, counted as the editor and exports count them: each object and each classification at the top of the label. A classification's