-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-0-highsemantic-analyzerProblems that happen during semantic analysisProblems that happen during semantic analysistopic-typed-dict
Description
mypy version: 0.710
Python version: 3.7.7
Given the following stub file (test.pyi):
from typing_extensions import TypedDict
class StuffDict(TypedDict):
foo: str
bar: int
def thing(stuff: StuffDict) -> int: ...Running mypy --new-semantic-analyzer test.pyi produces the following output:
test.pyi: error: Class test.StuffDict has abstract attributes "__getitem__", "__iter__", "__len__"
test.pyi: note: If it is meant to be abstract, add 'abc.ABCMeta' as an explicit metaclass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-0-highsemantic-analyzerProblems that happen during semantic analysisProblems that happen during semantic analysistopic-typed-dict