From ebe243abd258c68942e0a307f4dcf530013fd296 Mon Sep 17 00:00:00 2001 From: Jake Herrmann Date: Tue, 12 Nov 2024 11:45:16 -0900 Subject: [PATCH] update type hint --- apps/check-processing-time/src/check_processing_time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/check-processing-time/src/check_processing_time.py b/apps/check-processing-time/src/check_processing_time.py index bd94e5e42..6920a1bcf 100644 --- a/apps/check-processing-time/src/check_processing_time.py +++ b/apps/check-processing-time/src/check_processing_time.py @@ -1,4 +1,4 @@ -from typing import Optional, Union +from typing import Union def get_time_from_result(result: Union[list, dict]) -> Union[list, float]: @@ -13,7 +13,7 @@ def get_time_from_result(result: Union[list, dict]) -> Union[list, float]: return processing_time -def lambda_handler(event, _) -> Optional[list[Union[list, float]]]: +def lambda_handler(event, _) -> list[Union[list, float]]: processing_results = event['processing_results'] result_list = [processing_results[key] for key in sorted(processing_results.keys())] return get_time_from_result(result_list)