def set_keys_to_keep(keep_keys: Union[Dict[Type, Dict], str]) -> None:

source code

Set the keys to be kept during representation, which is a dict with types as keys and the nested structure to keep as values.

Arguments:

  • keep_keys - The types as keywords arguments and dictionary representing the