mypy complains about extended base class' attribute type
mypy complains about extended base class' attribute type Question: I have two base classes A and B that are defined like this: class A(object): def common_function(self): pass class B(object): def __init__(self, a: A): self.a = a def another_common_function(self): pass Class A holds some management information, whereas class B holds some other information, which is based …