before_after
before_after copied to clipboard
Class and static methods
Let's suppose I have following class:
class Test():
@staticmethod
def a():
return 'a'
@classmethod
def b(cls):
return 'b'
I tried to attach pre/post function, but I am getting error:
'classmethod' object is not callable
Is there possibility to make it work with @staticmethod
or @ classmethod
?