code: def roles(self, value):
          
  
          if value is not None:
              assert type(value) is dict, "'{0}' attribute: '{1}' type is not 'dict'!".format("roles", value)
              for key in value:
                  assert type(key) is Qt.ItemDataRole, "'{0}' attribute: '{1}' type is not 'Qt.ItemDataRole'!".format(
                      "roles", key)
          self.__roles = value
docs: Setter for **self.__roles** attribute.
  
          :param value: Attribute value.
          :type value: dict