class Foo:
__slots__ = (bool,)
def __init__(self, bar):
self.bar = True
class Foo:
__slots__ = ('bar',)
def __init__(self, bar):
self.bar = True
Used when an invalid __slots__
is found in class. Only a string, an iterable
or a sequence is permitted.