@@ -130,11 +130,18 @@ def refresh(self) -> None:
130130 """Synchronizes values of all fields with the database.
131131 """
132132 cls = type (self )
133- res = cls .from_name (self .client , self .parent_id , self .name , as_json = True )
133+ res = cls .from_name (self .client ,
134+ self .parent_id ,
135+ self .name ,
136+ as_json = True )
134137 self ._set_field_values (res )
135138
136139 @classmethod
137- def from_name (cls , client : "labelbox.Client" , parent_id : str , name : str , as_json : bool = False ):
140+ def from_name (cls ,
141+ client : "labelbox.Client" ,
142+ parent_id : str ,
143+ name : str ,
144+ as_json : bool = False ):
138145 raise NotImplementedError ("Inheriting class must override" )
139146
140147 @property
@@ -224,8 +231,11 @@ def create_from_url(cls, client: "labelbox.Client", model_run_id: str,
224231 raise ValueError (f"Url { url } is not reachable" )
225232
226233 @classmethod
227- def from_name (cls , client : "labelbox.Client" , model_run_id : str ,
228- name : str , as_json : bool = False ) -> "MEAPredictionImport" :
234+ def from_name (cls ,
235+ client : "labelbox.Client" ,
236+ model_run_id : str ,
237+ name : str ,
238+ as_json : bool = False ) -> "MEAPredictionImport" :
229239 """
230240 Retrieves an MEA import job.
231241
@@ -378,8 +388,11 @@ def create_from_url(cls, client: "labelbox.Client", project_id: str,
378388 raise ValueError (f"Url { url } is not reachable" )
379389
380390 @classmethod
381- def from_name (cls , client : "labelbox.Client" , project_id : str ,
382- name : str , as_json : bool = False ) -> "MALPredictionImport" :
391+ def from_name (cls ,
392+ client : "labelbox.Client" ,
393+ project_id : str ,
394+ name : str ,
395+ as_json : bool = False ) -> "MALPredictionImport" :
383396 """
384397 Retrieves an MAL import job.
385398
0 commit comments