File tree 3 files changed +9
-2
lines changed
libs/labelbox/src/labelbox
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):
24
24
uid : Optional [str ] = None
25
25
global_key : Optional [str ] = None
26
26
arr : Optional [TypedArray [Literal ['uint8' ]]] = None
27
- model_config = ConfigDict (extra = "forbid" , copy_on_model_validation = "none" )
27
+
28
+ model_config = ConfigDict (extra = "forbid" )
28
29
29
30
@classmethod
30
31
def from_2D_arr (cls , arr : Union [TypedArray [Literal ['uint8' ]],
Original file line number Diff line number Diff line change 1
1
from abc import ABC
2
2
from typing import ClassVar , List , Union
3
3
4
- from pydantic import field_validator
4
+ from pydantic import ConfigDict , field_validator
5
5
6
6
from labelbox .utils import _CamelCaseMixin
7
7
from labelbox .data .annotation_types .annotation import BaseAnnotation
10
10
class MessageInfo (_CamelCaseMixin ):
11
11
message_id : str
12
12
model_config_name : str
13
+
14
+ model_config = ConfigDict (protected_namespaces = ())
13
15
14
16
15
17
class OrderedMessageInfo (MessageInfo ):
@@ -19,6 +21,8 @@ class OrderedMessageInfo(MessageInfo):
19
21
class _BaseMessageEvaluationTask (_CamelCaseMixin , ABC ):
20
22
format : ClassVar [str ]
21
23
parent_message_id : str
24
+
25
+ model_config = ConfigDict (protected_namespaces = ())
22
26
23
27
24
28
class MessageSingleSelectionTask (_BaseMessageEvaluationTask , MessageInfo ):
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ class App(_CamelCaseMixin):
13
13
class_to_schema_id : Dict [str , str ]
14
14
ontology_id : str
15
15
created_by : Optional [str ] = None
16
+
17
+ model_config = ConfigDict (protected_namespaces = ())
16
18
17
19
@classmethod
18
20
def type_name (cls ):
You can’t perform that action at this time.
0 commit comments