Skip to content

Commit 32f4b72

Browse files
author
gdj0nes
committed
FIX: typing imports
1 parent 4374ded commit 32f4b72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

labelbox/data/annotation_types/label.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from pydantic import BaseModel, validator
55

6-
from labelbox.orm.model import Entity
76
from labelbox.schema import ontology
87
from .annotation import (ClassificationAnnotation, ObjectAnnotation,
98
VideoClassificationAnnotation, VideoObjectAnnotation)
@@ -13,6 +12,7 @@
1312
from .metrics import ScalarMetric, ConfusionMatrixMetric
1413
from .types import Cuid
1514
from ..ontology import get_feature_schema_lookup
15+
from ... import Dataset
1616

1717

1818
class Label(BaseModel):
@@ -55,13 +55,13 @@ def _get_annotations_by_type(self, annotation_type):
5555
]
5656

5757
def frame_annotations(
58-
self
58+
self
5959
) -> Dict[str, Union[VideoObjectAnnotation, VideoClassificationAnnotation]]:
6060
frame_dict = defaultdict(list)
6161
for annotation in self.annotations:
6262
if isinstance(
6363
annotation,
64-
(VideoObjectAnnotation, VideoClassificationAnnotation)):
64+
(VideoObjectAnnotation, VideoClassificationAnnotation)):
6565
frame_dict[annotation.frame].append(annotation)
6666
return frame_dict
6767

@@ -103,7 +103,7 @@ def add_url_to_masks(self, signer) -> "Label":
103103
mask.create_url(signer)
104104
return self
105105

106-
def create_data_row(self, dataset: "Entity.Dataset",
106+
def create_data_row(self, dataset: "Dataset",
107107
signer: Callable[[bytes], str]) -> "Label":
108108
"""
109109
Creates a data row and adds to the given dataset.

0 commit comments

Comments
 (0)