🔧 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:
parent
2edffd33ee
commit
d9deb6fd5f
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ from langflow.__main__ import console # type: ignore
|
||||||
from langflow.template.frontend_node.constants import FORCE_SHOW_FIELDS
|
from langflow.template.frontend_node.constants import FORCE_SHOW_FIELDS
|
||||||
from langflow.utils import constants
|
from langflow.utils import constants
|
||||||
from langflow.utils.logger import logger
|
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
|
from rich.table import Table # type: ignore
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -267,7 +267,7 @@ def format_dict(
|
||||||
|
|
||||||
_type: Union[str, type] = get_type(value)
|
_type: Union[str, type] = get_type(value)
|
||||||
|
|
||||||
if "BaseModel" in _type:
|
if "BaseModel" in str(_type):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
_type = remove_optional_wrapper(_type)
|
_type = remove_optional_wrapper(_type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue