class Type:

    @classmethod
    def str_to_list(xcls, str_object):
        list = map(str.strip, str_object.split(','))
        try:
            list.remove('')
        except ValueError:
            pass
        return list

    @classmethod
    def list_to_str(xcls, list_object):
        return ', '.join(list_object)

    @classmethod
    def str_to_bool(xcls, str_object):
        if str_object == "yes" or str_object == "on" or str_object == "true":
            return True
        elif str_object == "no" or str_object == "off" or str_object == "false":
            return False
        else:
            raise TypeError

    @classmethod
    def bool_to_str(xcls, bool_object):
        if bool_object:
            return "yes"
        else:
            return "no"

class Type:

    @classmethod
    def str_to_list(xcls, str_object):
        list = map(str.strip, str_object.split(','))
        try:
            list.remove('')
        except ValueError:
            pass
        return list

    @classmethod
    def list_to_str(xcls, list_object):
        return ', '.join(list_object)

    @classmethod
    def str_to_bool(xcls, str_object):
        if str_object == "yes" or str_object == "on" or str_object == "true" or str_object == "enabled" or str_object == "enable":
            return True
        elif str_object == "no" or str_object == "off" or str_object == "false" or str_object == "disabled" or str_object == "disable":
            return False
        else:
            raise TypeError

    @classmethod
    def bool_to_str(xcls, bool_object):
        if bool_object:
            return "yes"
        else:
            return "no"

Allow “enabled“, “enable”, “disabled“, “disable” as boolean values
Allow “enabled“, “enable”, “disabled“, “disable” as boolean values

  class Type:
  
      @classmethod
      def str_to_list(xcls, str_object):
          list = map(str.strip, str_object.split(','))
          try:
              list.remove('')
          except ValueError:
              pass
          return list
  
      @classmethod
      def list_to_str(xcls, list_object):
          return ', '.join(list_object)
  
      @classmethod
      def str_to_bool(xcls, str_object):
-         if str_object == "yes" or str_object == "on" or str_object == "true":
+         if str_object == "yes" or str_object == "on" or str_object == "true" or str_object == "enabled" or str_object == "enable":
              return True
-         elif str_object == "no" or str_object == "off" or str_object == "false":
+         elif str_object == "no" or str_object == "off" or str_object == "false" or str_object == "disabled" or str_object == "disable":
              return False
          else:
              raise TypeError
  
      @classmethod
      def bool_to_str(xcls, bool_object):
          if bool_object:
              return "yes"
          else:
              return "no"
  
Allow “enabled“, “enable”, “disabled“, “disable” as boolean values
## Code Before:
class Type:

    @classmethod
    def str_to_list(xcls, str_object):
        list = map(str.strip, str_object.split(','))
        try:
            list.remove('')
        except ValueError:
            pass
        return list

    @classmethod
    def list_to_str(xcls, list_object):
        return ', '.join(list_object)

    @classmethod
    def str_to_bool(xcls, str_object):
        if str_object == "yes" or str_object == "on" or str_object == "true":
            return True
        elif str_object == "no" or str_object == "off" or str_object == "false":
            return False
        else:
            raise TypeError

    @classmethod
    def bool_to_str(xcls, bool_object):
        if bool_object:
            return "yes"
        else:
            return "no"

## Instruction:
Allow “enabled“, “enable”, “disabled“, “disable” as boolean values
## Code After:
class Type:

    @classmethod
    def str_to_list(xcls, str_object):
        list = map(str.strip, str_object.split(','))
        try:
            list.remove('')
        except ValueError:
            pass
        return list

    @classmethod
    def list_to_str(xcls, list_object):
        return ', '.join(list_object)

    @classmethod
    def str_to_bool(xcls, str_object):
        if str_object == "yes" or str_object == "on" or str_object == "true" or str_object == "enabled" or str_object == "enable":
            return True
        elif str_object == "no" or str_object == "off" or str_object == "false" or str_object == "disabled" or str_object == "disable":
            return False
        else:
            raise TypeError

    @classmethod
    def bool_to_str(xcls, bool_object):
        if bool_object:
            return "yes"
        else:
            return "no"
