но в целом mypy умеет сам в частных случаях выводить типы даже без аннотаций
Expected type 'Dict[int, Dict[str, Union[str, Dict[str, Dict[str, Union[float, int]]]]]]', got 'Dict[Tuple[str, str], Dict[str, Union[str, Dict[str, Dict[str, Union[float, int]]]]]]' instead