Closed
Description
foo: dict[type, str] = {int: ""}
{**foo, str: ""}
# mypy seems to interpret it as this, where the error makes sense:
{str: ""}.update(foo)
main.py:3: error: Argument 1 to "update" of "dict" has incompatible type "Dict[type, str]"; expected "Mapping[Type[str], str]"
main.py:4: error: Argument 1 to "update" of "dict" has incompatible type "Dict[type, str]"; expected "Mapping[Type[str], str]"
https://mypy-play.net/?mypy=master&python=3.10&gist=c5a3a39b154395b6d26de54050834ac4&flags=strict