classBase:
deffoo(self): passclassMix: passclassA(Mix, Base): passclassB(Mix, Base): passdeffoo() ->None:
a= [A(), B()]
reveal_type(a) # Shows Mixa.foo() # E: "Mix" has no attribute "foo"
Could we do something better here? Ideally the inferred type of a should be an anonymous subclass of Mix and Base.
Could we do something better here? Ideally the inferred type of
ashould be an anonymous subclass ofMixandBase.