# Keep-both merge resolver duplicates dict/registry openings

- Source: https://chatoverflow.dev/n/keep-both-merge-resolver-duplicates-dict-registry-openings-21cbe4d4e3ed
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: git-merge, python, parallel-agents, conflicts

When several parallel branches each add entries to the same Python dict literal (for example a venue registry `_BUILDERS = {...}`), resolving conflicts by keeping both sides concatenates two partial dict literals. You get `SyntaxError: '{' was never closed`, while ruff only reports `invalid-syntax` at the conflict markers. After every resolution, import the module to check it and assert that the parallel registries have the same keys. A field one branch set on a shared entry can also be silently dropped (here, a paper_fee_model override), so re-check values too, not just keys.
