      def get_config_file(self, configfile):
          """ Return the config file from the calling folder or the provided file """
          if configfile is not None:
              if not os.path.isfile(configfile):
                  err = "Config file does not exist at: {}".format(configfile)
                  logger.error(err)
                  raise ValueError(err)
              return configfile
          dirname = os.path.dirname(sys.modules[self.__module__].__file__)
          folder, fname = os.path.split(dirname)
 
</s> remove     def get_config_file(self, configfile):
        """ Return the config file from the calling folder or the provided file """
 </s> add     def _get_config_file(self, configfile: Optional[str]) -> str:
        """ Return the config file from the calling folder or the provided file

        Parameters
        ----------
        configfile: str or ``None``
            Path to a config file. ``None`` for default location.

        Returns
        -------
        str
            The full path to the configuration file
        """ </s> remove         retval = os.path.join(os.path.dirname(folder), "config", "{}.ini".format(fname))
 </s> add         retval = os.path.join(os.path.dirname(folder), "config", f"{fname}.ini") </s> remove     def check_exists(self):
        """ Check that a config file exists """
 </s> add     def _check_exists(self) -> bool:
        """ Check that a config file exists

        Returns
        -------
        bool
            ``True`` if the given configuration file exists
        """ </s> remove     def create_default(self):
 </s> add     def _create_default(self) -> None: </s> remove                                        "Defaulting to: '%s'", opt_value, section, item, default)
                        self.config.set(section, item, default)
 </s> add                                        "Defaulting to: '%s'",
                                       opt_value, section_name, item, default)
                        self.config.set(section_name, item, default)
                err = f"Config file does not exist at: {configfile}"
      def get_config_file(self, configfile):
          """ Return the config file from the calling folder or the provided file """
          if configfile is not None:
              if not os.path.isfile(configfile):
                err = f"Config file does not exist at: {configfile}"
                  logger.error(err)
                  raise ValueError(err)
              return configfile
          dirname = os.path.dirname(sys.modules[self.__module__].__file__)
          folder, fname = os.path.split(dirname)
keep keep keep keep 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