pylint-errors

E0238 (invalid-slots)

:x: Problematic code:

class Foo:
    __slots__ = (bool,)

    def __init__(self, bar):
        self.bar = True

:heavy_check_mark: Correct code:

class Foo:
    __slots__ = ('bar',)

    def __init__(self, bar):
        self.bar = True

Rationale:

Used when an invalid __slots__ is found in class. Only a string, an iterable or a sequence is permitted.