79245099

Date: 2024-12-02 18:00:17
Score: 1
Natty:
Report link

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]

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nazar