Skip to content

Class and static methods #4

@koxu1996

Description

@koxu1996

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions