flatdict icon indicating copy to clipboard operation
flatdict copied to clipboard

Fix bug when calling as_dict on empty dict

Open tgh19 opened this issue 1 year ago • 0 comments

print(FlatDict({'a': {}}).as_dict())

should produce

{'a': {}}

but instead produces

{'a': <FlatDict id=139834437272912 {}>"}

This change fixes the functionality to print the former.

tgh19 avatar Nov 14 '23 18:11 tgh19