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 acf4f18 commit 6082463Copy full SHA for 6082463
libs/labelbox/src/labelbox/schema/ontology.py
@@ -26,6 +26,7 @@
26
map_tool_type_to_tool_cls,
27
)
28
from labelbox.schema.tool_building.types import FeatureSchemaAttributes
29
+import warnings
30
31
32
class DeleteFeatureFromOntologyResult:
@@ -99,6 +100,12 @@ class Type(Enum):
99
100
feature_schema_id: Optional[str] = None
101
attributes: Optional[FeatureSchemaAttributes] = None
102
103
+ def __post_init__(self):
104
+ if self.attributes is not None:
105
+ warnings.warn(
106
+ "Attributes are an experimental feature and may change in the future."
107
+ )
108
+
109
@classmethod
110
def from_dict(cls, dictionary: Dict[str, Any]) -> Dict[str, Any]:
111
return cls(
0 commit comments