.. _single-string-used-for-slots:

single-string-used-for-slots / C0205
====================================

**Message emitted:**

Class __slots__ should be a non-string iterable

**Description:**

*Used when a class __slots__ is a simple string, rather than an iterable.*

**Problematic code:**

.. literalinclude:: /data/messages/s/single-string-used-for-slots/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/s/single-string-used-for-slots/good.py
   :language: python



Created by the `classes <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/classes/class_checker.py>`__ checker.