🔧 chore(util.py): add type ignore comment to import statement for multiprocess module

🐛 fix(util.py): fix condition to check if "BaseModel" is in the string representation of _type to avoid skipping BaseModel types in format_dict function
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-28 17:55:04 -03:00
commit d9deb6fd5f

View file

@ -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)