Open eevleevs opened 4 years ago
same issue. it depends on the use case but as a workaround i'm doing this
I have a PR out that should fix this https://github.com/gmr/flatdict/pull/57
print(FlatDict({'a': {}, 'b': []}).as_dict())
{'a': {}, 'b': []}
If you have a value that is an empty dict, it will be set as another FlatDict, that is not cast back by as_dict().
Actual:
Expected: