dict_ops#
- deep_merge_missing(dst: Dict[str, Any], src: Dict[str, Any], *, skip_paths: Set[Tuple[str, ...]] | None = None, _path: Tuple[str, ...] = ()) None[source]#
Fill only missing keys in dst from src (recursive), skipping specific subtrees by dotted path. Paths are tuples like (‘binarization’,) or (‘performance’, ‘binarization’).
- get_nested(root: Any, path: tuple[str, ...], default: Any = None) Any[source]#
- Safe nested dict traversal. Returns default if:
any intermediate is not a dict
a key is missing
- is_under(prefix: tuple[str, ...], path: tuple[str, ...]) bool[source]#
Check if path is under prefix.
- Parameters:
prefix
path
Returns