From ac81883ee0b8a4d406d870992afed1f4ef40f6de Mon Sep 17 00:00:00 2001 From: Vsevolod Poletaev Date: Sun, 8 May 2022 15:37:40 +0400 Subject: [PATCH] :bug: Remove type validation from dict_merge Type validation is performed by pydantic --- doh/config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doh/config.py b/doh/config.py index ee8fdb0..ce0b42a 100644 --- a/doh/config.py +++ b/doh/config.py @@ -30,10 +30,6 @@ def dict_merge(*args, add_keys=True): for k, v in merge_dct.items(): if not rtn_dct.get(k): rtn_dct[k] = v - elif k in rtn_dct and type(v) != type(rtn_dct[k]): - raise TypeError( - f"Overlapping keys exist with different types: original is {type(rtn_dct[k])}, new value is {type(v)}" - ) elif isinstance(rtn_dct[k], dict) and isinstance( merge_dct[k], collections.abc.Mapping ):