Skip to content

Commit 95f896d

Browse files
author
Val Brodsky
committed
Remove as_list method from LabelGenerator
1 parent 34717a9 commit 95f896d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

labelbox/data/annotation_types/collection.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,21 +180,12 @@ def _apply_threaded(self, fns, max_concurrency, *args):
180180
class LabelGenerator(PrefetchGenerator):
181181
"""
182182
A container for interacting with a collection of labels.
183-
184-
Use this class if you have larger data. It is slightly harder to work with
185-
than the LabelList but will be much more memory efficient.
186183
"""
187184

188185
def __init__(self, data: Generator[Label, None, None], *args, **kwargs):
189186
self._fns = {}
190187
super().__init__(data, *args, **kwargs)
191188

192-
def as_list(self) -> "LabelList":
193-
warnings.warn("This method is deprecated and will be "
194-
"removed in a future release. LabeList"
195-
" class will be deprecated.")
196-
return LabelList(data=list(self))
197-
198189
def assign_feature_schema_ids(
199190
self,
200191
ontology_builder: "ontology.OntologyBuilder") -> "LabelGenerator":

0 commit comments

Comments
 (0)