sources.rest_api.utils
exclude_keys
def exclude_keys(d: Mapping[str, Any], keys: Iterable[str]) -> Dict[str, Any]
Removes specified keys from a dictionary and returns a new dictionary.
Arguments:
d
Mapping[str, Any] - The dictionary to remove keys from.keys
Iterable[str] - The keys to remove.
Returns:
Dict[str, Any]: A new dictionary with the specified keys removed.