We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6269b98 commit 5acbaa6Copy full SHA for 5acbaa6
labelbox/data/annotation_types/collection.py
@@ -22,7 +22,12 @@ class LabelList:
22
"""
23
24
def __init__(self, data: Optional[Iterable[Label]] = None):
25
- self._data = [] if data is None else data
+ if data is None:
26
+ self._data = []
27
+ elif isinstance(data, Label):
28
+ self._data = [data]
29
+ else:
30
+ self._data = data
31
self._index = 0
32
33
def assign_feature_schema_ids(
0 commit comments