before_after icon indicating copy to clipboard operation
before_after copied to clipboard

Class and static methods

Open koxu1996 opened this issue 6 years ago • 0 comments

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?

koxu1996 avatar May 13 '18 20:05 koxu1996