Skip to content

Commit b9c30fe

Browse files
authored
Merge pull request #417 from Labelbox/al-1467
Al 1467
2 parents 47ffb6d + 46308ec commit b9c30fe

File tree

2 files changed

+6
-58
lines changed

2 files changed

+6
-58
lines changed

labelbox/data/annotation_types/collection.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ class LabelList:
2222
"""
2323

2424
def __init__(self, data: Optional[Iterable[Label]] = None):
25-
self._data = [] if data is None else data
25+
if data is None:
26+
self._data = []
27+
elif isinstance(data, Label):
28+
self._data = [data]
29+
else:
30+
self._data = data
2631
self._index = 0
2732

2833
def assign_feature_schema_ids(

tests/integration/test_export.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)