openmnglab.util.dicts.get_any#

openmnglab.util.dicts.get_any(map: Mapping[_KT, _VT_co], *keys: _KT, default: _VT_co | None = None) _VT_co | None[source]#

Gets any value mapped by one of the existing keys if it exists in the mapping :param map: the mapping to work on :param keys: keys to look for in the mapping :param default: default value to return when none of the given keys exist in the mapping :return: an existing value of any of the given keys or the default