Closed
Description
Consider the following:
from typing import Any, Dict
from base import Base
class Derived(Base):
def to_dict(self) -> Dict[str, Any]:
return dict(self)
When we run mypy with --slient-imports
on only this file, we get the following error:
note: In member "to_dict" of class "Derived":
error: No overload variant of "dict" matches argument types [test_mypy_dict.Derived]