src/logclouseau.py
def load_config(config_file: str) -> Dict[str, Any]:
        """
        Loads a config file from a toml file and asserts it's valid.
        In order to be valid, a config must have at least 3 keys:
        channel, file, alert.
        Each one of them has its own format.
        The validation of the format is left at the consumer.
        """
        config: Dict[str, Any] = toml.load(config_file)
        utils.assert_dict_contains_keys(config, {'channel', 'file', 'alert'})
        return config

        Loads a config file from a toml file and asserts it's valid.
        In order to be valid, a config must have at least 3 keys:
        channel, file, alert.
        Each one of them has its own format.
        The validation of the format is left at the consumer.
        
Loads a config file from a toml file and asserts it's valid.
In order to be valid, a config must have at least 3 keys:
channel, file, alert.
Each one of them has its own format.
The validation of the format is left at the consumer.
Loads a config file from a toml file and asserts it ' s valid . In order to be valid a config must have at least 3 keys : channel file alert . Each one of them has its own format . The validation of the format is left at the consumer .
def load_config(config_file: str) -> Dict[str, Any]:
        config: Dict[str, Any] = toml.load(config_file)
        utils.assert_dict_contains_keys(config, {'channel', 'file', 'alert'})
        return config
def load_config ( config_file : str ) -> Dict [ str , Any ] : config : Dict [ str , Any ] = toml . load ( config_file ) utils . assert_dict_contains_keys ( config , { 'channel' , 'file' , 'alert' } ) return config
Loads a config file from a toml file and asserts it's valid.
Loads a config file from a toml file and asserts it ' s valid .
"""
        Loads a config file from a toml file and asserts it's valid.
        In order to be valid, a config must have at least 3 keys:
        channel, file, alert.
        Each one of them has its own format.
        The validation of the format is left at the consumer.
        """
config_file
str