With this change all handlers except the e2e_* ones have type hints enabled.
Add type hints to handlers code.