Closed devleaks closed 2 years ago
>>> import flatdict >>> print(flatdict.FlatDict({"test": {}})) {'test': <FlatDict id=140555892896048 {}>"}
Empty dict {} does not get flattened as {} but remains as FlatDict object. (Same with FlatterDict.) P.
This is expected behavior. You'd need to coerce it to a dict for it to be a dict, it's part of the core behavior.
Empty dict {} does not get flattened as {} but remains as FlatDict object. (Same with FlatterDict.) P.