---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLW0211 First argument of a static method should not be named `self`
 --> bad_staticmethod_argument.py:3:13
  |
1 | class Wolf:
2 |     @staticmethod
3 |     def eat(self):  # [bad-staticmethod-argument]
  |             ^^^^
4 |         pass
  |

PLW0211 First argument of a static method should not be named `cls`
  --> bad_staticmethod_argument.py:15:13
   |
13 | class Sheep:
14 |     @staticmethod
15 |     def eat(cls, x, y, z):  # [bad-staticmethod-argument]
   |             ^^^
16 |         pass
   |

PLW0211 First argument of a static method should not be named `self`
  --> bad_staticmethod_argument.py:19:15
   |
18 |     @staticmethod
19 |     def sleep(self, x, y, z):  # [bad-staticmethod-argument]
   |               ^^^^
20 |         pass
   |

PLW0211 First argument of a static method should not be named `self`
  --> bad_staticmethod_argument.py:55:17
   |
53 | # `self` but not with `cls` as first argument - see above).
54 | class Foo:
55 |     def __new__(self, x, y, z):  # [bad-staticmethod-argument]
   |                 ^^^^
56 |         pass
   |
