class Foo: attribute = 1 class Boo(Foo): def f(self): attr