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.
Problematic code:
class Wolf:
@staticmethod
def eat(self): # [bad-staticmethod-argument]
pass
Correct code:
class Wolf:
@staticmethod
def eat(sheep):
pass
Created by the classes checker.