@classmethod
    def validate(cls, value):
        if value not in (True, False):
            raise TypeError(
                "only True or False (and possibly None) may be assigned, got"
                " '%s'" % value
            )
dataset/ETHPy150Open python-openxml/python-docx/docx/oxml/simpletypes.py/XsdBoolean.validate/original