Skip to content

Commit

Permalink
style:fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries-ckt committed Oct 18, 2024
1 parent a05462d commit 10ac6c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dbgpt/agent/core/action/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10ac6c7

Please sign in to comment.