From d9deb6fd5fd1c91686198ae119e14461899e750e Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 28 Aug 2023 17:55:04 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(util.py):=20add=20type=20i?= =?UTF-8?q?gnore=20comment=20to=20import=20statement=20for=20multiprocess?= =?UTF-8?q?=20module=20=F0=9F=90=9B=20fix(util.py):=20fix=20condition=20to?= =?UTF-8?q?=20check=20if=20"BaseModel"=20is=20in=20the=20string=20represen?= =?UTF-8?q?tation=20of=20=5Ftype=20to=20avoid=20skipping=20BaseModel=20typ?= =?UTF-8?q?es=20in=20format=5Fdict=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/utils/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/utils/util.py b/src/backend/langflow/utils/util.py index 8f0ff216a..890201294 100644 --- a/src/backend/langflow/utils/util.py +++ b/src/backend/langflow/utils/util.py @@ -10,7 +10,7 @@ from langflow.__main__ import console # type: ignore from langflow.template.frontend_node.constants import FORCE_SHOW_FIELDS from langflow.utils import constants from langflow.utils.logger import logger -from multiprocess import cpu_count +from multiprocess import cpu_count # type: ignore from rich.table import Table # type: ignore @@ -267,7 +267,7 @@ def format_dict( _type: Union[str, type] = get_type(value) - if "BaseModel" in _type: + if "BaseModel" in str(_type): continue _type = remove_optional_wrapper(_type)