Open raul-openai opened 3 years ago
I guess we can just deepcopy the dict.
frozendict(copy.deepcopy(orig_top))
It would still probably be worth providing that functionality in the constructor (eg: bool flag), since this can be an error prone default.
Can nested dictionaries be supported? Is this a bug or expected behavior to only support shallow dictionaries?
Expected: All nested dictionaries are also frozen.
Thanks.