diff --git a/src/helpers.py b/src/helpers.py index ab6799057145550f4346e05f29aba7741da03989..94b60964fc08b7b4f5be49ad1fc720cd6f6ae68b 100644 --- a/src/helpers.py +++ b/src/helpers.py @@ -208,3 +208,8 @@ def list_pop(list_full: list, pop_items): list_pop = list_full.copy() list_pop.remove(pop_items[0]) return list_pop + + +def dict_pop(dict_orig: Dict, pop_keys): + pop_keys = to_list(pop_keys) + return {k: v for k, v in dict_orig.items() if k not in pop_keys}