          config.add_section(section)
          config.set(section, helptext)
          logger.debug("Inserted section: '%s'", section)
  
      def insert_config_item(self, section, item, default, option,
                             config=None):
          """ Insert an item into a config section """
          logger.debug("Inserting item: (section: '%s', item: '%s', default: '%s', helptext: '%s', "
                       "config: '%s')", section, item, default, option["helptext"], config)
          config = self.config if config is None else config
          config.optionxform = str
          helptext = option["helptext"]
 
</s> remove                      "config: '%s')", section, item, default, option["helptext"], config)
 </s> add                      "config: '%s')", section, item, default, option.helptext, config) </s> remove         config.optionxform = str
        helptext = option["helptext"]
 </s> add         config.optionxform = str  # type:ignore
        helptext = option.helptext </s> remove         config.optionxform = str
 </s> add         config.optionxform = str  # type:ignore </s> remove     def insert_config_section(self, section, helptext, config=None):
        """ Insert a section into the config """
 </s> add     def insert_config_section(self,
                              section: str,
                              helptext: str,
                              config: Optional[ConfigParser] = None) -> None:
        """ Insert a section into the config

        Parameters
        ----------
        section: str
            The section title to insert
        helptext: str
            The help text for the config section
        config: :class:`configparser.ConfigParser`, optional
            The config parser object to insert the section into. ``None`` to insert it into the
            default config. Default: ``None``
        """ </s> remove                 if item == "helptext":
                    continue
                self.insert_config_item(section,
                                        item,
                                        opt["default"],
                                        opt)
 </s> add                 self._insert_config_item(name, item, opt.default, opt)
    def _insert_config_item(self,
                            section: str,
                            item: str,
                            default: ConfigValueType,
                            option: ConfigItem,
                            config: Optional[ConfigParser] = None) -> None:
        """ Insert an item into a config section

        Parameters
        ----------
        section: str
            The section to insert the item into
        item: str
            The name of the item to insert
        default: ConfigValueType
            The default value for the item
        option: :class:`ConfigItem`
            The configuration option to insert
        config: :class:`configparser.ConfigParser`, optional
            The config parser object to insert the section into. ``None`` to insert it into the
            default config. Default: ``None``
        """
          config.add_section(section)
          config.set(section, helptext)
          logger.debug("Inserted section: '%s'", section)
  
    def _insert_config_item(self,
                            section: str,
                            item: str,
                            default: ConfigValueType,
                            option: ConfigItem,
                            config: Optional[ConfigParser] = None) -> None:
        """ Insert an item into a config section

        Parameters
        ----------
        section: str
            The section to insert the item into
        item: str
            The name of the item to insert
        default: ConfigValueType
            The default value for the item
        option: :class:`ConfigItem`
            The configuration option to insert
        config: :class:`configparser.ConfigParser`, optional
            The config parser object to insert the section into. ``None`` to insert it into the
            default config. Default: ``None``
        """
    def _insert_config_item(self,
                            section: str,
                            item: str,
                            default: ConfigValueType,
                            option: ConfigItem,
                            config: Optional[ConfigParser] = None) -> None:
        """ Insert an item into a config section

        Parameters
        ----------
        section: str
            The section to insert the item into
        item: str
            The name of the item to insert
        default: ConfigValueType
            The default value for the item
        option: :class:`ConfigItem`
            The configuration option to insert
        config: :class:`configparser.ConfigParser`, optional
            The config parser object to insert the section into. ``None`` to insert it into the
            default config. Default: ``None``
        """
    def _insert_config_item(self,
                            section: str,
                            item: str,
                            default: ConfigValueType,
                            option: ConfigItem,
                            config: Optional[ConfigParser] = None) -> None:
        """ Insert an item into a config section

        Parameters
        ----------
        section: str
            The section to insert the item into
        item: str
            The name of the item to insert
        default: ConfigValueType
            The default value for the item
        option: :class:`ConfigItem`
            The configuration option to insert
        config: :class:`configparser.ConfigParser`, optional
            The config parser object to insert the section into. ``None`` to insert it into the
            default config. Default: ``None``
        """
          logger.debug("Inserting item: (section: '%s', item: '%s', default: '%s', helptext: '%s', "
                       "config: '%s')", section, item, default, option["helptext"], config)
          config = self.config if config is None else config
          config.optionxform = str
          helptext = option["helptext"]
keep keep keep keep replace replace replace keep keep keep keep keep
 Preview - Allow mask color/opacity configuration
  - typing: lib.config
  - docs: lib.config
  - bugfix: popup_configure - keep assets on top 
lib/config.py