Skip to content

Commit 8a3c35f

Browse files
committed
AL-000: Styles fix
1 parent f6d32cc commit 8a3c35f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

labelbox/data/serialization/ndjson/objects.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def to_common(self) -> Line:
9696
def from_common(cls, line: Line,
9797
classifications: List[ClassificationAnnotation], name: str,
9898
feature_schema_id: Cuid, extra: Dict[str, Any],
99-
data: Union[ImageData, TextData],
100-
confidence: float) -> "NDLine":
99+
data: Union[ImageData,
100+
TextData], confidence: float) -> "NDLine":
101101
return cls(line=[{
102102
'x': pt.x,
103103
'y': pt.y
@@ -107,8 +107,7 @@ def from_common(cls, line: Line,
107107
schema_id=feature_schema_id,
108108
uuid=extra.get('uuid'),
109109
classifications=classifications,
110-
confidence=confidence
111-
)
110+
confidence=confidence)
112111

113112

114113
class NDFrameLine(VideoSupported):
@@ -353,9 +352,8 @@ def to_common(self) -> TextEntity:
353352
def from_common(cls, text_entity: TextEntity,
354353
classifications: List[ClassificationAnnotation], name: str,
355354
feature_schema_id: Cuid, extra: Dict[str, Any],
356-
data: Union[ImageData, TextData],
357-
confidence: float
358-
) -> "NDTextEntity":
355+
data: Union[ImageData,
356+
TextData], confidence: float) -> "NDTextEntity":
359357
return cls(location=Location(
360358
start=text_entity.start,
361359
end=text_entity.end,
@@ -365,8 +363,7 @@ def from_common(cls, text_entity: TextEntity,
365363
schema_id=feature_schema_id,
366364
uuid=extra.get('uuid'),
367365
classifications=classifications,
368-
confidence=confidence
369-
)
366+
confidence=confidence)
370367

371368

372369
class NDObject:

0 commit comments

Comments
 (0)