From 10ac6c7e08eb15a867848c76a9a4fc5eaa9ac865 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Fri, 18 Oct 2024 14:12:05 +0800 Subject: [PATCH] style:fmt --- dbgpt/agent/core/action/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbgpt/agent/core/action/base.py b/dbgpt/agent/core/action/base.py index 8ff26f566..79929999e 100644 --- a/dbgpt/agent/core/action/base.py +++ b/dbgpt/agent/core/action/base.py @@ -181,7 +181,9 @@ def _input_convert(self, ai_message: str, cls: Type[T]) -> T: if get_origin(cls) == list: inner_type = get_args(cls)[0] typed_cls = cast(Type[BaseModel], inner_type) - return [typed_cls.model_validate(item) for item in json_result] # type: ignore + return [ + typed_cls.model_validate(item) for item in json_result + ] # type: ignore else: typed_cls = cast(Type[BaseModel], cls) return typed_cls.model_validate(json_result)