Repository URL to install this package:
|
Version:
0.5.11.dev1+gbb3d976ac ▾
|
# -*- coding: utf-8 -*-
import copy
from typing import Any, Dict, Mapping
import dpath
def merge_dicts(*dicts: Mapping[str, Any]) -> Dict[str, Any]:
if not dicts:
return {}
current: Dict[str, Any] = {}
for d in dicts:
dpath.merge(current, dict(copy.deepcopy(d)))
return current