Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Type(Enum):
TEXT = "text"
CHECKLIST = "checklist"
RADIO = "radio"
GROUP = "group"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GROUP classification type may need options requirement

Medium Severity

The new GROUP classification type is not added to _REQUIRES_OPTIONS, allowing creation of GROUP classifications without any options. Semantically, a "group" implies grouping items together, which would require options to be meaningful. An empty GROUP classification (with nothing to group) may result in invalid ontologies or unexpected behavior during labeling. If GROUP is intended to behave like CHECKLIST/RADIO, it needs to be added to _REQUIRES_OPTIONS.

Additional Locations (1)

Fix in Cursor Fix in Web


class Scope(Enum):
GLOBAL = "global"
Expand Down
Loading