Skip to content

Commit

Permalink
bug fix to _prune_dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl11 committed Nov 7, 2024
1 parent 945b493 commit 54181d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion unify/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54181d8

Please sign in to comment.