From beb350687e9e8c90ce26643d8c9c2a4817e7f39d Mon Sep 17 00:00:00 2001 From: Marcin Usielski Date: Mon, 5 Feb 2024 11:53:28 +0100 Subject: [PATCH] pydoc --- moler/helpers.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/moler/helpers.py b/moler/helpers.py index 9613fe4fb..80972b791 100644 --- a/moler/helpers.py +++ b/moler/helpers.py @@ -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]