-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrong
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]
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong