Skip to content

Commit 3dafbd7

Browse files
author
Val Brodsky
committed
Made sure deprecation warnings for LabelList do not appear when including all labelbox
1 parent c802abb commit 3dafbd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

labelbox/data/annotation_types/collection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ class LabelList:
2222
Use on smaller datasets.
2323
"""
2424

25-
warnings.warn("LabelList is deprecated and will be "
26-
"removed in a future release.")
2725

2826
def __init__(self, data: Optional[Iterable[Label]] = None):
27+
warnings.warn("LabelList is deprecated and will be "
28+
"removed in a future release.")
29+
2930
if data is None:
3031
self._data = []
3132
elif isinstance(data, Label):

0 commit comments

Comments
 (0)