@@ -130,11 +130,18 @@ def refresh(self) -> None:
130
130
"""Synchronizes values of all fields with the database.
131
131
"""
132
132
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 )
134
137
self ._set_field_values (res )
135
138
136
139
@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 ):
138
145
raise NotImplementedError ("Inheriting class must override" )
139
146
140
147
@property
@@ -224,8 +231,11 @@ def create_from_url(cls, client: "labelbox.Client", model_run_id: str,
224
231
raise ValueError (f"Url { url } is not reachable" )
225
232
226
233
@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" :
229
239
"""
230
240
Retrieves an MEA import job.
231
241
@@ -378,8 +388,11 @@ def create_from_url(cls, client: "labelbox.Client", project_id: str,
378
388
raise ValueError (f"Url { url } is not reachable" )
379
389
380
390
@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" :
383
396
"""
384
397
Retrieves an MAL import job.
385
398
0 commit comments