gfw.common.dictionaries.copy_dict_without#

copy_dict_without(dictionary, keys)[source]#

Returns a shallow copy of the given dictionary excluding specified keys.

Parameters:
  • dictionary (Mapping[K, V]) – The source dictionary to copy.

  • keys (list[Any]) – A list of keys to remove from the resulting dictionary.

Returns:

A new dictionary with the specified keys removed.

Return type:

Dict[Any, Any]