@@ -367,8 +367,8 @@ def create_from_objects(
367367 if not data_str :
368368 raise ValueError ('annotations cannot be empty' )
369369 data = data_str .encode ('utf-8' )
370- return cls ._create_mal_import_from_bytes (client , project_id , name ,
371- data , len (data ))
370+ return cls ._create_mal_import_from_bytes (client , project_id , name , data ,
371+ len (data ))
372372
373373 @classmethod
374374 def create_from_url (cls , client : "labelbox.Client" , project_id : str ,
@@ -577,8 +577,7 @@ def from_name(cls,
577577 }
578578 response = client .execute (query_str , params )
579579 if response is None :
580- raise labelbox .exceptions .ResourceNotFoundError (
581- LabelImport , params )
580+ raise labelbox .exceptions .ResourceNotFoundError (LabelImport , params )
582581 response = response ["labelImport" ]
583582 if as_json :
584583 return response
@@ -617,4 +616,4 @@ def _create_label_import_from_bytes(cls, client: "labelbox.Client",
617616 query_str = cls ._get_file_mutation ()
618617 res = cls ._create_from_bytes (client , variables , query_str , file_name ,
619618 bytes_data )
620- return cls (client , res ["createLabelImport" ])
619+ return cls (client , res ["createLabelImport" ])
0 commit comments