This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from copy import deepcopy | |
from functools import reduce | |
def merge_dicts(dict1: dict, dict2: dict) -> dict: | |
""" | |
Merges dicts. | |
""" | |
for key in dict2: | |
if key not in dict1 or not isinstance(dict1[key], dict): |