@@ -97,7 +97,7 @@ def set_content_length_header(
9797 wrapped : Callable [..., str ],
9898 instance : 'MockVuforiaWebServicesAPI' , # pylint: disable=unused-argument
9999 args : Tuple [_RequestObjectProxy , _Context ],
100- kwargs : Dict
100+ kwargs : Dict ,
101101) -> str :
102102 """
103103 Set the `Content-Length` header.
@@ -155,7 +155,7 @@ def decorator(method: Callable[..., str]) -> Callable[..., str]:
155155 route_name = method .__name__ ,
156156 path_pattern = path_pattern ,
157157 http_methods = http_methods ,
158- )
158+ ),
159159 )
160160
161161 key_validator = validate_keys (
@@ -287,7 +287,7 @@ def status(self) -> str:
287287 target is for detection.
288288 """
289289 processing_time = datetime .timedelta (
290- seconds = self ._processing_time_seconds
290+ seconds = self ._processing_time_seconds ,
291291 )
292292
293293 time_since_change = datetime .datetime .now () - self .last_modified_date
@@ -312,7 +312,7 @@ def tracking_rating(self) -> int:
312312 pre_rating_time = datetime .timedelta (
313313 # That this is half of the total processing time is unrealistic.
314314 # In VWS it is not a constant percentage.
315- seconds = self ._processing_time_seconds / 2
315+ seconds = self ._processing_time_seconds / 2 ,
316316 )
317317
318318 time_since_upload = datetime .datetime .now () - self .upload_date
@@ -474,29 +474,29 @@ def database_summary(
474474 target for target in self .targets
475475 if target .status == TargetStatuses .SUCCESS .value
476476 and target .active_flag
477- ]
477+ ],
478478 )
479479
480480 failed_images = len (
481481 [
482482 target for target in self .targets
483483 if target .status == TargetStatuses .FAILED .value
484- ]
484+ ],
485485 )
486486
487487 inactive_images = len (
488488 [
489489 target for target in self .targets
490490 if target .status == TargetStatuses .SUCCESS .value
491491 and not target .active_flag
492- ]
492+ ],
493493 )
494494
495495 processing_images = len (
496496 [
497497 target for target in self .targets
498498 if target .status == TargetStatuses .PROCESSING .value
499- ]
499+ ],
500500 )
501501
502502 body = {
0 commit comments