From b69f2be165a2c76343f5f7b9b03c18321aa5d588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=A3=92=E6=A3=92?= Date: Mon, 15 Jan 2024 16:51:25 +0800 Subject: [PATCH] delete type. --- metagpt/actions/execute_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/actions/execute_code.py b/metagpt/actions/execute_code.py index 1a97e49d6..fb0ecd893 100644 --- a/metagpt/actions/execute_code.py +++ b/metagpt/actions/execute_code.py @@ -227,7 +227,7 @@ class ExecutePyCode(ExecuteCode, Action): return code, True -def truncate(result: str, keep_len: int = 2000, is_success: bool = True) -> str | bool: +def truncate(result: str, keep_len: int = 2000, is_success: bool = True): desc = f"Executed code {'successfully' if is_success else 'failed, please reflect the cause of bug and then debug'}" if is_success: desc += f"Truncated to show only {keep_len} characters\n"