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
mypy version: 0.710
Python version: 3.7.7
Given the following stub file (test.pyi):
Running
mypy --new-semantic-analyzer test.pyiproduces the following output: