pogona.update_dict_recursively(to_update: Dict, to_read: Dict, uninherit=True, clear_uninherit=True)[source]
  • to_update – Dictionary to update in-place.

  • to_read – Dictionary to use for updating. Will be changed in the process! Has precedence over to_update!

  • uninherit – Allow removing items from the old dict; example: ‘a’ will be removed: d_old={‘a’: 42, ‘b’: 2}, d_new={‘b’: 3, ‘uninherit’: [‘a’]} -> {‘b’: 3}

  • clear_uninherit – If False, lists of keys to uninherit will not be cleared. This can be useful for multiple inheritance where the same ‘uninherit’ should be applied to multiple configs.