flatdict
flatdict copied to clipboard
FlatterDict conversion to dict results in AttributeError
>>> import flatdict
>>> flatdict.FlatterDict({'l': [{'b':'c'}, 'd']}).as_dict()
python3.7/site-packages/flatdict.py in _child_as_list(self, pk, ck): 474
AttributeError: 'str' object has no attribute 'original_type'
>>> flatdict.__version__
'4.0.1'
The error is caused by 'd'
item in the list. It happens also if the item in the original list is an int
or float