Skip to content

Commit b7c4e5a

Browse files
author
Val Brodsky
committed
Remove LabelList from comments in objects, ndjson base, converter
1 parent c0fa452 commit b7c4e5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

labelbox/data/serialization/labelbox_v1/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def from_common(cls, mask: Mask,
219219
extra: Dict[str, Any]) -> "LBV1Mask":
220220
if mask.mask.url is None:
221221
raise ValueError(
222-
"Mask does not have a url. Use `LabelGenerator.add_url_to_masks`, `LabelList.add_url_to_masks`, or `Label.add_url_to_masks`."
222+
"Mask does not have a url. Use `LabelGenerator.add_url_to_masks`, or `Label.add_url_to_masks`."
223223
)
224224
return cls(instanceURI=mask.mask.url,
225225
classifications=classifications,

labelbox/data/serialization/ndjson/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DataRow(BaseModel):
1313
def validate_id(cls, v):
1414
if v is None:
1515
raise ValueError(
16-
"Data row ids are not set. Use `LabelGenerator.add_to_dataset`, `LabelList.add_to_dataset`, or `Label.create_data_row`. "
16+
"Data row ids are not set. Use `LabelGenerator.add_to_dataset`,or `Label.create_data_row`. "
1717
"You can also manually assign the id for each `BaseData` object"
1818
)
1919
return v

labelbox/data/serialization/ndjson/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def serialize(
3636
We will continue to improve the error messages and add helper functions to deal with this.
3737
3838
Args:
39-
labels: Either a LabelList or a LabelGenerator
39+
labels: Either a list of labels or a LabelGenerator
4040
Returns:
4141
A generator for accessing the ndjson representation of the data
4242
"""

0 commit comments

Comments
 (0)