Skip to content

Commit

Permalink
pydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Feb 5, 2024
1 parent 41471af commit beb3506
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions moler/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,8 @@ def create_object_from_name(full_class_name, constructor_params):

def update_dict(target_dict, expand_dict):
for key, value in expand_dict.items():
if (
key in target_dict
and isinstance(target_dict[key], dict)
and isinstance(expand_dict[key], collections.abc.Mapping)
):
if (key in target_dict and isinstance(target_dict[key], dict) and isinstance(expand_dict[key],
collections.abc.Mapping)):
update_dict(target_dict[key], expand_dict[key])
else:
target_dict[key] = expand_dict[key]
Expand Down

0 comments on commit beb3506

Please sign in to comment.