pylint-errors

W0211 (bad-staticmethod-argument)

:x: Problematic code:

class Foo:
    @staticmethod
    def bar(self):
        pass

:heavy_check_mark: Correct code:

class Foo:
    @staticmethod
    def bar(arg):
        pass

Rationale:

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.