diff --git a/unify/utils/helpers.py b/unify/utils/helpers.py index e95baaa..4f966bd 100644 --- a/unify/utils/helpers.py +++ b/unify/utils/helpers.py @@ -66,7 +66,10 @@ def keep(v): if v is None: return False else: - return bool(_prune_dict(v)) + ret = _prune_dict(v) + if isinstance(ret, dict) or isinstance(ret, list) or isinstance(ret, tuple): + return bool(ret) + return True if ( not isinstance(val, dict)