Flush
Remove specific keys or all
Subclass of Action. Type: Action[Dict[str, Any], Dict[str, Any]].
Module: core
Methods and properties
Main methods and properties
__init__
Arguments:
keys (Optional[List[str]], optional): Keys for removing. If equals to None, all keys will be removed. Defaults to None.
name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.
execute
Remove specified keys
Arguments:
input_data (Dict[str, Any]): Current data.
Raises:
InputDataKeyError: Key for removing doesn't exist.
Returns:
Dict[str, Any]: Updated data.
Last updated