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):