---
source: crates/ruff/src/rules/pep8_naming/mod.rs
---
N805.py:7:20: N805 First argument of a method should be named `self`
  |
7 | class Class:
8 |     def bad_method(this):
  |                    ^^^^ N805
9 |         pass
  |

N805.py:12:30: N805 First argument of a method should be named `self`
   |
12 |     if False:
13 | 
14 |         def extra_bad_method(this):
   |                              ^^^^ N805
15 |             pass
   |

N805.py:27:15: N805 First argument of a method should be named `self`
   |
27 |     @pydantic.validator
28 |     def lower(cls, my_field: str) -> str:
   |               ^^^ N805
29 |         pass
   |

N805.py:31:15: N805 First argument of a method should be named `self`
   |
31 |     @pydantic.validator("my_field")
32 |     def lower(cls, my_field: str) -> str:
   |               ^^^ N805
33 |         pass
   |

N805.py:60:29: N805 First argument of a method should be named `self`
   |
60 |         pass
61 | 
62 |     def bad_method_pos_only(this, blah, /, self, something: str):
   |                             ^^^^ N805
63 |         pass
   |


