mmax2conll/mmax2conll/main.py
def keys_from_config(cls, config, keys, filename):
        """
        Select some `keys` with their values from a dictionary

        `filename` is only used for the error message if a key is missing
        """
        args = {}
        # Extract required arguments from configuration
        for arg in keys:
            if arg not in config:
                raise ValueError(
                    f"The key {arg!r} is not in the specified configuration"
                    f" file {filename}"
                )
            args[arg] = config[arg]

        return args

        Select some `keys` with their values from a dictionary

        `filename` is only used for the error message if a key is missing
        
Select some `keys` with their values from a dictionary
`filename` is only used for the error message if a key is missing
Select some ` keys ` with their values from a dictionary ` filename ` is only used for the error message if a key is missing
def keys_from_config(cls, config, keys, filename):
        args = {}
        for arg in keys:
            if arg not in config:
                raise ValueError(
                    f"The key {arg!r} is not in the specified configuration"
                    f" file {filename}"
                )
            args[arg] = config[arg]
        return args
def keys_from_config ( cls , config , keys , filename ) : args = { } for arg in keys : if arg not in config : raise ValueError ( f"The key {arg!r} is not in the specified configuration" f" file {filename}" ) args [ arg ] = config [ arg ] return args
Select some `keys` with their values from a dictionary
`filename` is only used for the error message if a key is missing
Select some ` keys ` with their values from a dictionary ` filename ` is only used for the error message if a key is missing
"""
        Select some `keys` with their values from a dictionary

        `filename` is only used for the error message if a key is missing
        """ # Extract required arguments from configuration
cls
config
keys
filename