class A(object): @classmethod def m(cls): pass class B(A): pass