bad-staticmethod-argument / W0211#

Message emitted:

Static method with %r as first argument

Description:

Used when a static method has "self" or a value specified in valid-classmethod-first-arg option or valid-metaclass-classmethod-first-arg option as first argument.

Correct code:

class Wolf:
    @staticmethod
    def eat(sheep):
        pass

Problematic code:

class Wolf:
    @staticmethod
    def eat(self):  # [bad-staticmethod-argument]
        pass

Created by the classes checker.