1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
"""check static method with self or cls as first argument""" __revision__ = None class Abcd(object): """dummy""" def method1(self): """hehe""" method1 = staticmethod(method1) def method2(cls): """hehe""" method2 = staticmethod(method2) def __init__(self): pass