@@ -26,13 +26,13 @@ class AnnotationInfosByTaskIdResponse200ItemTask:
2626 id (str):
2727 project_id (str):
2828 team (str):
29+ type (AnnotationInfosByTaskIdResponse200ItemTaskType):
2930 data_set (str):
3031 created (int):
3132 status (AnnotationInfosByTaskIdResponse200ItemTaskStatus):
3233 bounding_box (str):
3334 formatted_hash (Union[Unset, str]):
3435 project_name (Union[Unset, str]):
35- type (Union[Unset, AnnotationInfosByTaskIdResponse200ItemTaskType]):
3636 needed_experience (Union[Unset, AnnotationInfosByTaskIdResponse200ItemTaskNeededExperience]):
3737 script (Union[Unset, str]):
3838 tracing_time (Union[Unset, None, int]):
@@ -44,13 +44,13 @@ class AnnotationInfosByTaskIdResponse200ItemTask:
4444 id : str
4545 project_id : str
4646 team : str
47+ type : "AnnotationInfosByTaskIdResponse200ItemTaskType"
4748 data_set : str
4849 created : int
4950 status : "AnnotationInfosByTaskIdResponse200ItemTaskStatus"
5051 bounding_box : str
5152 formatted_hash : Union [Unset , str ] = UNSET
5253 project_name : Union [Unset , str ] = UNSET
53- type : Union [Unset , "AnnotationInfosByTaskIdResponse200ItemTaskType" ] = UNSET
5454 needed_experience : Union [
5555 Unset , "AnnotationInfosByTaskIdResponse200ItemTaskNeededExperience"
5656 ] = UNSET
@@ -65,17 +65,15 @@ def to_dict(self) -> Dict[str, Any]:
6565 id = self .id
6666 project_id = self .project_id
6767 team = self .team
68+ type = self .type .to_dict ()
69+
6870 data_set = self .data_set
6971 created = self .created
7072 status = self .status .to_dict ()
7173
7274 bounding_box = self .bounding_box
7375 formatted_hash = self .formatted_hash
7476 project_name = self .project_name
75- type : Union [Unset , Dict [str , Any ]] = UNSET
76- if not isinstance (self .type , Unset ):
77- type = self .type .to_dict ()
78-
7977 needed_experience : Union [Unset , Dict [str , Any ]] = UNSET
8078 if not isinstance (self .needed_experience , Unset ):
8179 needed_experience = self .needed_experience .to_dict ()
@@ -98,6 +96,7 @@ def to_dict(self) -> Dict[str, Any]:
9896 "id" : id ,
9997 "projectId" : project_id ,
10098 "team" : team ,
99+ "type" : type ,
101100 "dataSet" : data_set ,
102101 "created" : created ,
103102 "status" : status ,
@@ -108,8 +107,6 @@ def to_dict(self) -> Dict[str, Any]:
108107 field_dict ["formattedHash" ] = formatted_hash
109108 if project_name is not UNSET :
110109 field_dict ["projectName" ] = project_name
111- if type is not UNSET :
112- field_dict ["type" ] = type
113110 if needed_experience is not UNSET :
114111 field_dict ["neededExperience" ] = needed_experience
115112 if script is not UNSET :
@@ -144,6 +141,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
144141
145142 team = d .pop ("team" )
146143
144+ type = AnnotationInfosByTaskIdResponse200ItemTaskType .from_dict (d .pop ("type" ))
145+
147146 data_set = d .pop ("dataSet" )
148147
149148 created = d .pop ("created" )
@@ -158,13 +157,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
158157
159158 project_name = d .pop ("projectName" , UNSET )
160159
161- _type = d .pop ("type" , UNSET )
162- type : Union [Unset , AnnotationInfosByTaskIdResponse200ItemTaskType ]
163- if isinstance (_type , Unset ):
164- type = UNSET
165- else :
166- type = AnnotationInfosByTaskIdResponse200ItemTaskType .from_dict (_type )
167-
168160 _needed_experience = d .pop ("neededExperience" , UNSET )
169161 needed_experience : Union [
170162 Unset , AnnotationInfosByTaskIdResponse200ItemTaskNeededExperience
@@ -192,13 +184,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
192184 id = id ,
193185 project_id = project_id ,
194186 team = team ,
187+ type = type ,
195188 data_set = data_set ,
196189 created = created ,
197190 status = status ,
198191 bounding_box = bounding_box ,
199192 formatted_hash = formatted_hash ,
200193 project_name = project_name ,
201- type = type ,
202194 needed_experience = needed_experience ,
203195 script = script ,
204196 tracing_time = tracing_time ,
0 commit comments