🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
修改 metagpt/team.py 符合代码规范
voidkingbf9fa4476549
diff --git a/metagpt/team.py b/metagpt/team.pyindex 1df3c4052..0c1efb812 100644--- a/metagpt/team.py+++ b/metagpt/team.py@@ -10,6 +10,7 @@from pathlib import Pathimport warnings+from pydantic import BaseModel, Fieldfrom 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):