Skip to content

Merge nested mappings when using TYPESAFE alone - #214

Open
Boulea7 wants to merge 1 commit into
dpath-maintainers:masterfrom
Boulea7:bugfix/typesafe_mapping_merge
Open

Boulea7 wants to merge 1 commit into
dpath-maintainers:masterfrom
Boulea7:bugfix/typesafe_mapping_merge

Conversation

@Boulea7

@Boulea7 Boulea7 commented Oct 29, 2026

Copy link
Copy Markdown

With flags=MergeType.TYPESAFE, existing nested mappings are skipped, so compatible keys are not merged and nested type conflicts are not checked. Recurse into mappings for this exact flag value while preserving list strategies and other flag combinations. A type error can occur after earlier keys have been merged.

Adds regressions for nested merges, error paths, UserDict, and the existing flag behavior.

Validation: 88 tests passed on Python 3.12.15, and 21 merge tests passed on Python 3.11.2. The rest of the supported Python matrix was not run locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant