check_dict_has_keys#
- pybrops.core.error.error_value_python.check_dict_has_keys(v, vname, *args)[source]#
Check if a set of keys can be found among the keys of a provided
dict
. If any of the keys cannot be found within the dict, then raise an error.- Parameters:
v (dict) – Dictionary to check for keys.
vname (str) – Name assigned to the dictionary.
args (Tuple[object,...]) – A tuple of keys for which to search in the input dictionary.
- Return type:
None