---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLE0237 Attribute `surname` is not defined in class's `__slots__`
 --> non_slot_assignment.py:6:9
  |
4 |     def __init__(self, name, surname):
5 |         self.name = name
6 |         self.surname = surname  # [assigning-non-slot]
  |         ^^^^^^^^^^^^
7 |         self.setup()
  |

PLE0237 Attribute `middle_name` is not defined in class's `__slots__`
  --> non_slot_assignment.py:18:9
   |
16 |     def __init__(self, name, middle_name):
17 |         self.name = name
18 |         self.middle_name = middle_name  # [assigning-non-slot]
   |         ^^^^^^^^^^^^^^^^
19 |         self.setup()
   |

PLE0237 Attribute `middle_name` is not defined in class's `__slots__`
  --> non_slot_assignment.py:42:9
   |
40 |     def __init__(self, name, middle_name):
41 |         self.name = name
42 |         self.middle_name = middle_name  # [assigning-non-slot]
   |         ^^^^^^^^^^^^^^^^
43 |         self.setup()
   |
