TL;DR
Static Type Checkers help you find simple (but subtle) bugs in your Python code. Check out
lambda_types.py
and incrementally improve your code base and development/debugging experience with type hints.
Your Lambda Function code will go from this: