From 9086cccc49adebed7ba5ebcd2e76660c7a9e9763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Tue, 6 Aug 2024 15:33:25 +0800 Subject: [PATCH] fixbug: Optional not working --- tests/metagpt/actions/test_action_node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/metagpt/actions/test_action_node.py b/tests/metagpt/actions/test_action_node.py index 338d87242..58a6dd517 100644 --- a/tests/metagpt/actions/test_action_node.py +++ b/tests/metagpt/actions/test_action_node.py @@ -306,6 +306,7 @@ def test_optional(): mapping = { "Logic Analysis": (Optional[List[Tuple[str, str]]], Field(default=None)), "Task list": (Optional[List[str]], None), + "Plan": (Optional[str], ""), "Anything UNCLEAR": (Optional[str], None), } m = {"Anything UNCLEAR": "a"}