void () { /* This behavior mimics C3 MRO used by *new style* classes for Python 2.3 and below For details see: https://www.python.org/download/releases/2.3/mro/ Since annotations are supported in Python 3.5 and above, *classic classes* should not be tested here, but it's NOT the case for docstrings */ doTest("int", """ class Base1: def test(self, param: str) -> str: pass class Base2(Base1): def test(self, param: int) -> int: pass class Base3(Base1): pass class Subclass(Base3, Base2): def test(self, param): expr = param"""); }