Skip to content

Commit 99e53e1

Browse files
committed
don't reorder from before
1 parent d20baea commit 99e53e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nucleus/annotation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ class BoxAnnotation(Annotation): # pylint: disable=R0902
120120
y: Union[float, int]
121121
width: Union[float, int]
122122
height: Union[float, int]
123-
annotation_id: Optional[str] = None
124-
metadata: Optional[Dict] = None
125123
reference_id: Optional[str] = None
126124
item_id: Optional[str] = None
125+
annotation_id: Optional[str] = None
126+
metadata: Optional[Dict] = None
127127

128128
def __post_init__(self):
129129
self._check_ids()
@@ -165,10 +165,10 @@ def to_payload(self) -> dict:
165165
class PolygonAnnotation(Annotation):
166166
label: str
167167
vertices: List[Any]
168-
annotation_id: Optional[str] = None
169-
metadata: Optional[Dict] = None
170168
reference_id: Optional[str] = None
171169
item_id: Optional[str] = None
170+
annotation_id: Optional[str] = None
171+
metadata: Optional[Dict] = None
172172

173173
def __post_init__(self):
174174
self._check_ids()

0 commit comments

Comments
 (0)