class A(object): @staticmethod def foo(a, b): pass f = A().foo f(1, 2)