修改 metagpt/team.py 符合代码规范

This commit is contained in:
voidking 2023-12-20 14:07:52 +08:00
parent fa1af92537
commit bf9fa44765

View file

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