class Foo: BAR = True def baz(cls): return cls.BAR
class Foo: BAR = True @classmethod def baz(cls): return cls.BAR
Used when a class method is defined without using the decorator syntax.