Source code for tablate.library.checkers.set_key_resolver
from typing import Any
[docs]
def set_key_resolver(instance: dict, key: str, default: Any):
return instance[key] if instance is not None and key in instance and instance[key] is not None else default