diff --git a/doc/data/messages/r/redefined-slots-in-subclass/bad.py b/doc/data/messages/r/redefined-slots-in-subclass/bad.py new file mode 100644 index 0000000000..e47b2b8394 --- /dev/null +++ b/doc/data/messages/r/redefined-slots-in-subclass/bad.py @@ -0,0 +1,6 @@ +class Base: + __slots__ = ("a", "b") + + +class Subclass(Base): + __slots__ = ("a", "d") # [redefined-slots-in-subclass] diff --git a/doc/data/messages/r/redefined-slots-in-subclass/good.py b/doc/data/messages/r/redefined-slots-in-subclass/good.py new file mode 100644 index 0000000000..8f2ac3b97e --- /dev/null +++ b/doc/data/messages/r/redefined-slots-in-subclass/good.py @@ -0,0 +1,6 @@ +class Base: + __slots__ = ("a", "b") + + +class Subclass(Base): + __slots__ = ("c", "d")