File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
libs/labelbox/src/labelbox Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ class RasterData(BaseModel, ABC):
2424 uid : Optional [str ] = None
2525 global_key : Optional [str ] = None
2626 arr : Optional [TypedArray [Literal ['uint8' ]]] = None
27- model_config = ConfigDict (extra = "forbid" , copy_on_model_validation = "none" )
27+
28+ model_config = ConfigDict (extra = "forbid" )
2829
2930 @classmethod
3031 def from_2D_arr (cls , arr : Union [TypedArray [Literal ['uint8' ]],
Original file line number Diff line number Diff line change 11from abc import ABC
22from typing import ClassVar , List , Union
33
4- from pydantic import field_validator
4+ from pydantic import ConfigDict , field_validator
55
66from labelbox .utils import _CamelCaseMixin
77from labelbox .data .annotation_types .annotation import BaseAnnotation
1010class MessageInfo (_CamelCaseMixin ):
1111 message_id : str
1212 model_config_name : str
13+
14+ model_config = ConfigDict (protected_namespaces = ())
1315
1416
1517class OrderedMessageInfo (MessageInfo ):
@@ -19,6 +21,8 @@ class OrderedMessageInfo(MessageInfo):
1921class _BaseMessageEvaluationTask (_CamelCaseMixin , ABC ):
2022 format : ClassVar [str ]
2123 parent_message_id : str
24+
25+ model_config = ConfigDict (protected_namespaces = ())
2226
2327
2428class MessageSingleSelectionTask (_BaseMessageEvaluationTask , MessageInfo ):
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ class App(_CamelCaseMixin):
1313 class_to_schema_id : Dict [str , str ]
1414 ontology_id : str
1515 created_by : Optional [str ] = None
16+
17+ model_config = ConfigDict (protected_namespaces = ())
1618
1719 @classmethod
1820 def type_name (cls ):
You can’t perform that action at this time.
0 commit comments