whist_core.util

Collection of utility functions.

Module Contents

Functions

enforce_str_on_dict(→ dict)

Forces a dictionary to use string values instead of objects for the given keys.

whist_core.util.enforce_str_on_dict(dictionary: dict, keys: Iterable[str]) dict

Forces a dictionary to use string values instead of objects for the given keys. :param dictionary: which needs transformation :param keys: that values needed to be transformed :return: the above dictionary with values changes to string