.. _invalid-slots: invalid-slots / E0238 ===================== **Message emitted:** ``Invalid __slots__ object`` **Description:** *Used when an invalid __slots__ is found in class. Only a string, an iterable or a sequence is permitted.* **Problematic code:** .. literalinclude:: /data/messages/i/invalid-slots/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/i/invalid-slots/good.py :language: python Created by the `classes `__ checker.