def __init__(self, *a, **kw):
        super(AttributeSet, self).__init__(*a, **kw)
        assert self.fg is unset or self.fg in '012345679'
        assert self.bg is unset or self.bg in '012345679'
        assert self.bold is unset or self.bold in (True, False)
        assert self.underline is unset or self.underline in (True, False)
        assert self.reverseVideo is unset or self.reverseVideo in (True, False)
        assert self.blink is unset or self.blink in (True, False)
dataset/ETHPy150Open twisted/imaginary/imaginary/text.py/AttributeSet.__init__/original