---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
redefined_slots_in_subclass.py:6:18: PLW0244 Slot `a` redefined from base class `Base`
  |
5 | class Subclass(Base):
6 |     __slots__ = ("a", "d")  # [redefined-slots-in-subclass]
  |                  ^^^ PLW0244
7 |
8 | class Grandparent:
  |

redefined_slots_in_subclass.py:17:23: PLW0244 Slot `a` redefined from base class `Grandparent`
   |
16 | class Child(Parent):
17 |     __slots__ = ("c", "a")
   |                       ^^^ PLW0244
18 |
19 | class AnotherBase:
   |

redefined_slots_in_subclass.py:23:18: PLW0244 Slot `a` redefined from base class `AnotherBase`
   |
22 | class AnotherChild(AnotherBase):
23 |     __slots__ = ["a","b","e","f"]
   |                  ^^^ PLW0244
   |

redefined_slots_in_subclass.py:23:22: PLW0244 Slot `b` redefined from base class `AnotherBase`
   |
22 | class AnotherChild(AnotherBase):
23 |     __slots__ = ["a","b","e","f"]
   |                      ^^^ PLW0244
   |
