From bf9fa4476549d2b57fbe62f5a6df9d2825d46a21 Mon Sep 17 00:00:00 2001 From: voidking Date: Wed, 20 Dec 2023 14:07:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20metagpt/team.py=20?= =?UTF-8?q?=E7=AC=A6=E5=90=88=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metagpt/team.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/metagpt/team.py b/metagpt/team.py index 1df3c4052..0c1efb812 100644 --- a/metagpt/team.py +++ b/metagpt/team.py @@ -10,6 +10,7 @@ from pathlib import Path import warnings + from pydantic import BaseModel, Field from metagpt.actions import UserRequirement @@ -94,9 +95,12 @@ class Team(BaseModel): Deprecated: This method will be removed in the future. Please use the `run_project` method instead. """ - warnings.warn("The 'start_project' method is deprecated and will be removed in the future. " - "Please use the 'run_project' method instead.", - DeprecationWarning, stacklevel=2) + warnings.warn( + "The 'start_project' method is deprecated and will be removed in the future. " + "Please use the 'run_project' method instead.", + DeprecationWarning, + stacklevel=2, + ) return self.run_project(idea=idea, send_to=send_to) def _save(self):