mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
Add type annotation for task_mapping in Crew.copy() method
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -1139,7 +1139,7 @@ class Crew(BaseModel):
|
||||
except Exception as e:
|
||||
self._logger.log("warning", f"Failed to copy manager_agent: {e}")
|
||||
|
||||
task_mapping = {}
|
||||
task_mapping: Dict[str, Task] = {}
|
||||
|
||||
cloned_tasks = []
|
||||
existing_knowledge_sources = shallow_copy(self.knowledge_sources)
|
||||
|
||||
Reference in New Issue
Block a user