you should define the type of your dict:
from typing import Union, Dict result: Dict[str, Union[int, str]]
Mypy raise the error as it just check the first value from your dict and determine it as type Dict[str, str]