Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class and static methods #4

Open
koxu1996 opened this issue May 13, 2018 · 0 comments · May be fixed by #7
Open

Class and static methods #4

koxu1996 opened this issue May 13, 2018 · 0 comments · May be fixed by #7

Comments

@koxu1996
Copy link

koxu1996 commented May 13, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant