def _set_attr_from_config_option(
        self,
        cp: TConfigParser,
        attr: str,
        where: str,
        type_: str = "",
    ) -> bool:
        """Set an attribute on self if it exists in the ConfigParser.

        Returns True if the attribute was set.

        """
        section, option = where.split(":")
        if cp.has_option(section, option):
            method = getattr(cp, f"get{type_}")
            setattr(self, attr, method(section, option))
            return True
        return False
Set an attribute on self if it exists in the ConfigParser.

        Returns True if the attribute was set.

        
coverage/config.py