@classmethod
    def validate(cls, value):
        """
        Raise |ValueError| if *value* is not an assignable value.
        """
        if value not in cls._valid_settings:
            raise ValueError(
                "%s not a member of %s enumeration" % (value, cls.__name__)
            )
dataset/ETHPy150Open scanny/python-pptx/pptx/enum/base.py/EnumerationBase.validate/original