Skip to content

Commit

Permalink
update type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Nov 12, 2024
1 parent 7aa9374 commit ebe243a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/check-processing-time/src/check_processing_time.py
Original file line number Diff line number Diff line change
@@ -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]:
Expand All @@ -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)

0 comments on commit ebe243a

Please sign in to comment.