From 0aa8a25e3fed29b269f8ab57ab996223488ac628 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 28 Aug 2023 11:17:44 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(util.py):=20remove=20unnec?= =?UTF-8?q?essary=20check=20for=20"BaseModel"=20in=20=5Ftype=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The check for "BaseModel" in the _type variable is unnecessary and can be safely removed. --- src/backend/langflow/utils/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/langflow/utils/util.py b/src/backend/langflow/utils/util.py index f68c9dbe2..90c9cd015 100644 --- a/src/backend/langflow/utils/util.py +++ b/src/backend/langflow/utils/util.py @@ -265,6 +265,9 @@ def format_dict( _type: Union[str, type] = get_type(value) + if "BaseModel" in _type: + continue + _type = remove_optional_wrapper(_type) _type = check_list_type(_type, value) _type = replace_mapping_with_dict(_type)