def rules(self, value):
        """
        Setter for **self.__rules** attribute.

        :param value: Attribute value.
        :type value: tuple or list
        """

        if value is not None:
            assert type(value) in (tuple, list), "'{0}' attribute: '{1}' type is not 'tuple' or 'list'!".format(
                "rules", value)
        self.__rules = value
def rules ( self , value ) : if value is not None : assert type ( value ) in ( tuple , list ) , "'{0}' attribute: '{1}' type is not 'tuple' or 'list'!" . format ( "rules" , value ) self . __rules = value
Setter for **self.__rules** attribute.

        :param value: Attribute value.
        :type value: tuple or list