dynode.utils.utils.drop_keys_with_substring

dynode.utils.utils.drop_keys_with_substring#

dynode.utils.utils.drop_keys_with_substring(dct: dict[str, Any], drop_s: str)#

Drop keys from a dictionary if they contain a specified substring.

Parameters#

dctdict[str, Any]

Dictionary with string keys.

drop_sstr

Substring to check for in keys.

Returns#

dict[str, Any]

Dictionary with keys containing drop_s removed.