class Foo: def bar(self): pass bar = staticmethod(bar)
class Foo: @staticmethod def bar(self): pass
Used when a static method is defined without using the decorator syntax.