Skip to content

Commit af080e7

Browse files
More types
1 parent ada0c56 commit af080e7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

encord/orm/label_row.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from collections import OrderedDict
55
from dataclasses import asdict, dataclass
66
from enum import Enum
7-
from typing import TYPE_CHECKING, Any, Dict, List, Optional
7+
from typing import Any, Dict, List, Optional
88
from uuid import UUID
99

1010
from pydantic import Field
@@ -14,9 +14,6 @@
1414
from encord.orm.base_dto import BaseDTO
1515
from encord.orm.formatter import Formatter
1616

17-
if TYPE_CHECKING:
18-
from encord.objects.spaces.types import SpaceInfo
19-
2017

2118
class LabelRow(base_orm.BaseORM):
2219
"""A label row contains a data unit or a collection of data units and associated
@@ -308,9 +305,6 @@ class LabelRowMetadata(Formatter):
308305
audio_bit_depth: Optional[int]
309306
audio_num_channels: Optional[int]
310307

311-
"""Information about spaces on this label row."""
312-
spaces: dict
313-
314308
group_hash: Optional[str] = None
315309

316310
task_uuid: Optional[UUID] = None
@@ -351,7 +345,6 @@ def from_dict(cls, json_dict: Dict) -> LabelRowMetadata:
351345
data_title=json_dict["data_title"],
352346
data_type=json_dict["data_type"],
353347
data_link=json_dict["data_link"],
354-
spaces=json_dict["spaces"],
355348
label_status=LabelStatus(json_dict["label_status"]),
356349
annotation_task_status=annotation_task_status,
357350
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
539532
backing_item_uuid=label_row_metadata_dto.backing_item_uuid,
540533
assigned_user_email=label_row_metadata_dto.assigned_user_email,
541534
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={},
544535
)

0 commit comments

Comments
 (0)