I am trying to understand mypy a little better. For the following line of code:
request_body: dict = {}
request_body = request.get_json()
mypy returns an error:
error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "Dict[Any, Any]")
What is the correct fix for this?