Skip to content

Commit ef3cadb

Browse files
committed
update hint
1 parent 7649763 commit ef3cadb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

labelbox/data/serialization/ndjson/label.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ def _create_video_annotations(
111111

112112
elif isinstance(annotation_group[0], VideoObjectAnnotation):
113113
warnings.warn(
114-
"Nested classifications are not currently supported ",
115-
"for video object annotations ",
116-
"and will not import alongside the object annotations.")
114+
"""Nested classifications are not currently supported
115+
for video object annotations
116+
and will not import alongside the object annotations.""")
117117
segments = []
118118
for start_frame, end_frame in consecutive_frames:
119119
segment = []

labelbox/data/serialization/ndjson/objects.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ def to_common(annotation: "NDObjectType") -> ObjectAnnotation:
284284

285285
@classmethod
286286
def from_common(
287-
cls, annotation: ObjectAnnotation, data: Union[ImageData, TextData]
287+
cls, annotation: Union[ObjectAnnotation,
288+
List[List[VideoObjectAnnotation]]],
289+
data: Union[ImageData, TextData]
288290
) -> Union[NDLine, NDPoint, NDPolygon, NDRectangle, NDMask, NDTextEntity]:
289291
obj = cls.lookup_object(annotation)
290292

0 commit comments

Comments
 (0)