Skip to content

Commit f74d027

Browse files
committed
added some commentary on potential pitfalls
1 parent 7cda334 commit f74d027

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

labelbox/schema/ontology_generator.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@
1010
-> this is a lesser issue because the UI will not reflect the unavailable fields
1111
Is there an effective way to enforce limitations on Option.add_option()?
1212
-> Maybe a way to check if the Option itself has options when adding it to a Classification?
13+
14+
Classification.add_..
15+
Tool.add_..
16+
Tool.add_..
17+
Currently the above will let you input values to generate a new object, but they do not play well with already made objects
18+
Example:
19+
Classification.add_option(value=...) will work fine
20+
21+
option = Option(value=...)
22+
Classification.add_option(option) will not work
23+
24+
What is the best way to allow both the creation of both an object but also accept an already existing object?
1325
'''
1426

1527
from dataclasses import dataclass, field

0 commit comments

Comments
 (0)