From a3eaa027963b1ee41885220fcc8eebdd5a6c945c Mon Sep 17 00:00:00 2001 From: hgftrdw45ud67is8o89 <155507621+hgftrdw45ud67is8o89@users.noreply.github.com> Date: Sun, 4 Aug 2024 13:41:33 +0000 Subject: [PATCH] Update project_management_an.py fix bug https://github.com/geekan/MetaGPT/issues/1430 --- metagpt/actions/project_management_an.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metagpt/actions/project_management_an.py b/metagpt/actions/project_management_an.py index db27434a1..308579cc3 100644 --- a/metagpt/actions/project_management_an.py +++ b/metagpt/actions/project_management_an.py @@ -5,13 +5,13 @@ @Author : alexanderwu @File : project_management_an.py """ -from typing import List +from typing import List, Optional from metagpt.actions.action_node import ActionNode REQUIRED_PACKAGES = ActionNode( key="Required packages", - expected_type=List[str], + expected_type=Optional[List[str]], instruction="Provide required packages in requirements.txt format.", example=["flask==1.1.2", "bcrypt==3.2.0"], )