no-staticmethod-decorator / R0203#

Message emitted:

Consider using a decorator instead of calling staticmethod

Description:

Used when a static method is defined without using the decorator syntax.

Correct code:

class Worm:
    @staticmethod
    def bore(self):
        pass

Problematic code:

class Worm:
    def bore(self):
        pass

    bore = staticmethod(bore)  # [no-staticmethod-decorator]

Created by the classes checker.