@@ -43,7 +43,9 @@ def get_annotation_class(
4343 self , name : str , class_type : ClassTypeEnum
4444 ) -> AnnotationClass :
4545 for annotation_class in self ._annotation_classes :
46- if annotation_class .name == name and class_type .equals (annotation_class .type ):
46+ if annotation_class .name == name and class_type .equals (
47+ annotation_class .type
48+ ):
4749 return annotation_class
4850
4951 @lru_cache ()
@@ -207,7 +209,9 @@ def handle(self, annotation: dict):
207209 i for i in annotation ["instances" ] if "className" in i and i ["classId" ] > 0
208210 ]:
209211 annotation_class_name = annotation_instance ["className" ]
210- annotation_class_type = self ._get_class_type (annotation_instance .get ("type" , ClassTypeEnum .OBJECT ))
212+ annotation_class_type = self ._get_class_type (
213+ annotation_instance .get ("type" , ClassTypeEnum .OBJECT )
214+ )
211215
212216 annotation_class = self .get_annotation_class (
213217 annotation_class_name , annotation_class_type
@@ -287,7 +291,9 @@ def convert_timestamp(timestamp):
287291 "locked" : False ,
288292 }
289293 if class_name :
290- annotation_class = self .get_annotation_class (class_name ,ClassTypeEnum .OBJECT )
294+ annotation_class = self .get_annotation_class (
295+ class_name , ClassTypeEnum .OBJECT
296+ )
291297 if annotation_class :
292298 editor_instance ["classId" ] = annotation_class .id
293299 else :
@@ -322,7 +328,9 @@ def convert_timestamp(timestamp):
322328 ] = timestamp_data ["points" ]
323329 if not class_name :
324330 continue
325- annotation_class = self .get_annotation_class (class_name ,ClassTypeEnum .OBJECT )
331+ annotation_class = self .get_annotation_class (
332+ class_name , ClassTypeEnum .OBJECT
333+ )
326334 if not annotation_class :
327335 self .reporter .store_message (
328336 "missing_classes" , meta ["className" ]
0 commit comments