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.
2 parents 47ffb6d + 46308ec commit b9c30feCopy full SHA for b9c30fe
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(
tests/integration/test_export.py
0 commit comments