void () { doTest("Type[Derived]", """ class Base: @classmethod def cls(cls): return cls class Derived(Base): pass expr = Derived.cls()"""); doTest("Type[Derived]", """ class Base: @classmethod def cls(cls): return cls class Derived(Base): pass expr = Derived().cls()"""); }