---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLC0205 Class `__slots__` should be a non-string iterable
 --> single_string_slots.py:3:5
  |
1 | # Errors.
2 | class Foo:
3 |     __slots__ = "bar"
  |     ^^^^^^^^^^^^^^^^^
4 |
5 |     def __init__(self, bar):
  |

PLC0205 Class `__slots__` should be a non-string iterable
  --> single_string_slots.py:10:5
   |
 9 | class Foo:
10 |     __slots__: str = "bar"
   |     ^^^^^^^^^^^^^^^^^^^^^^
11 |
12 |     def __init__(self, bar):
   |

PLC0205 Class `__slots__` should be a non-string iterable
  --> single_string_slots.py:17:5
   |
16 | class Foo:
17 |     __slots__: str = f"bar"
   |     ^^^^^^^^^^^^^^^^^^^^^^^
18 |
19 |     def __init__(self, bar):
   |
