One function
object_merge in dynaconf/dynaconf
The author described this change as “fix: keep sibling keys that share a dotted path leaf name (#1434)”. It counts as a record because the check below fails on the code as it stood at b56a831c0 and passes on ec3bc0940, with nothing else changed between the two runs.
Projectdynaconf/dynaconf
Fix saved2026-07-29
Sharing licenceMIT · LICENSE
Change size+1 −0
What the code was meant to do, written into the code itself as a docstring
Recursively merge two data structures, new is mutated in-place. :param old: The existing data. :param new: The new data to get old values merged in to. :param unique: When set to True existing list items are not set. :param full_path: Indicates the elements of a tree. :param list_merge: Methods to use to merge lists - merge: default merge behavior, i.e. (unique) concatenation - shallow: replace the top-most level list of the nested structure - deep: iteratively traverse the nested structure and replace the element in the list at the level specified by the full_path
The change
| 83 | 83 | # but the new value on the end of full path is the same | |
| 84 | 84 | if ( | |
| 85 | 85 | existing_value is not None | |
| 86 | + | and len(full_path) == 1 | |
| 86 | 87 | and old_key.lower() == full_path[-1].lower() | |
| 87 | 88 | and existing_value is value | |
| 88 | 89 | ): |
The check that tells the two apart
fail→pass·tests/test_validators.py::test_sibling_key_sharing_leaf_name_survives_validation
Check file tests/test_validators.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itb56a831c0846b2a8e6d725afac4abf9ae50c9105
Broken version dated2026-07-29
Moduledynaconf.utils.__init__
Units changedobject_merge
Fingerprint960880de095cf3e3
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in dynaconf/dynaconf
- 2026-08-05find_the_correct_casing
- 2026-08-01get_history
- 2026-07-31fix: add __deepcopy__ to DataDict to match DataList (#1440)
- 2026-07-29normalize_kwargs
- 2026-07-29handle_metavalues
- 2026-07-29fix(nodes): convert container subclasses (#1436)