Unflattening a FlatterDict with list values works fine if that FlatterDict object was created from a dict with list values.
However, if that dict is converted to a plain old dict containing delimited keys, the keys which represent lists do not property unflatten - instead, it unflattens to a dict whose keys are the string integers.
This is so because FlatterDict carries around an original_type, which stores information about the key types, and this information is lost when you go to a regular dictionary.
Unflattening a
FlatterDict
with list values works fine if thatFlatterDict
object was created from a dict with list values. However, if that dict is converted to a plain old dict containing delimited keys, the keys which represent lists do not property unflatten - instead, it unflattens to a dict whose keys are the string integers.As an example:
Produces:
This is so because
FlatterDict
carries around anoriginal_type
, which stores information about the key types, and this information is lost when you go to a regular dictionary.