sob/model.py
def validate_enumerated(self, value: abc.MarshallableTypes) -> None:
        """
        Verify that a value is one of the enumerated options
        """
        if (
            (value is not None)
            and isinstance(self.property, abc.Enumerated)
            and (self.property.values is not None)
            and (value not in self.property.values)
        ):
            raise ValueError(
                "The value provided is not a valid option:\n{}\n\n"
                "Valid options include:\n{}".format(
                    repr(value),
                    ", ".join(
                        repr(enumerated_value)
                        for enumerated_value in self.property.values
                    ),
                )
            )

        Verify that a value is one of the enumerated options
        
Verify that a value is one of the enumerated options
Verify that a value is one of the enumerated options
def validate_enumerated(self, value: abc.MarshallableTypes) -> None:
        if (
            (value is not None)
            and isinstance(self.property, abc.Enumerated)
            and (self.property.values is not None)
            and (value not in self.property.values)
        ):
            raise ValueError(
                "The value provided is not a valid option:\n{}\n\n"
                "Valid options include:\n{}".format(
                    repr(value),
                    ", ".join(
                        repr(enumerated_value)
                        for enumerated_value in self.property.values
                    ),
                )
            )
def validate_enumerated ( self , value : abc . MarshallableTypes ) -> None : if ( ( value is not None ) and isinstance ( self . property , abc . Enumerated ) and ( self . property . values is not None ) and ( value not in self . property . values ) ) : raise ValueError ( "The value provided is not a valid option:\n{}\n\n" "Valid options include:\n{}" . format ( repr ( value ) , ", " . join ( repr ( enumerated_value ) for enumerated_value in self . property . values ) , ) )
Verify that a value is one of the enumerated options
Verify that a value is one of the enumerated options
"""
        Verify that a value is one of the enumerated options
        """
self
value
abc.MarshallableTypes