|
4 | 4 | from collections import OrderedDict |
5 | 5 | from dataclasses import asdict, dataclass |
6 | 6 | from enum import Enum |
7 | | -from typing import TYPE_CHECKING, Any, Dict, List, Optional |
| 7 | +from typing import Any, Dict, List, Optional |
8 | 8 | from uuid import UUID |
9 | 9 |
|
10 | 10 | from pydantic import Field |
|
14 | 14 | from encord.orm.base_dto import BaseDTO |
15 | 15 | from encord.orm.formatter import Formatter |
16 | 16 |
|
17 | | -if TYPE_CHECKING: |
18 | | - from encord.objects.spaces.types import SpaceInfo |
19 | | - |
20 | 17 |
|
21 | 18 | class LabelRow(base_orm.BaseORM): |
22 | 19 | """A label row contains a data unit or a collection of data units and associated |
@@ -308,9 +305,6 @@ class LabelRowMetadata(Formatter): |
308 | 305 | audio_bit_depth: Optional[int] |
309 | 306 | audio_num_channels: Optional[int] |
310 | 307 |
|
311 | | - """Information about spaces on this label row.""" |
312 | | - spaces: dict |
313 | | - |
314 | 308 | group_hash: Optional[str] = None |
315 | 309 |
|
316 | 310 | task_uuid: Optional[UUID] = None |
@@ -351,7 +345,6 @@ def from_dict(cls, json_dict: Dict) -> LabelRowMetadata: |
351 | 345 | data_title=json_dict["data_title"], |
352 | 346 | data_type=json_dict["data_type"], |
353 | 347 | data_link=json_dict["data_link"], |
354 | | - spaces=json_dict["spaces"], |
355 | 348 | label_status=LabelStatus(json_dict["label_status"]), |
356 | 349 | annotation_task_status=annotation_task_status, |
357 | 350 | workflow_graph_node=WorkflowGraphNode.from_optional_dict(json_dict.get("workflow_graph_node")), |
@@ -539,6 +532,4 @@ def label_row_metadata_dto_to_label_row_metadata(label_row_metadata_dto: LabelRo |
539 | 532 | backing_item_uuid=label_row_metadata_dto.backing_item_uuid, |
540 | 533 | assigned_user_email=label_row_metadata_dto.assigned_user_email, |
541 | 534 | last_actioned_by_user_email=label_row_metadata_dto.last_actioned_by_user_email, |
542 | | - # TODO: Do we need this in the DTO? |
543 | | - spaces={}, |
544 | 535 | ) |
0 commit comments