Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Refactor type hints and clean up imports in crew.py (#2480)

Lorenze Jayc23e8fbb0258
diff --git a/src/crewai/crew.py b/src/crewai/crew.py
index c82ff309f..c54d50425 100644
--- a/src/crewai/crew.py
+++ b/src/crewai/crew.py
@@ -6,9 +6,8 @@ import warnings
from concurrent.futures import Future
from copy import copy as shallow_copy
from hashlib import md5
-from typing import Any, Callable, Dict, List, Optional, Set, Tuple, TypeVar, Union, cast
+from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union, cast
-from langchain_core.tools import BaseTool as LangchainBaseTool
from pydantic import (
UUID4,
BaseModel,
@@ -490,7 +489,7 @@ class Crew(BaseModel):
task.key for task in self.tasks
]
return md5("|".join(source).encode(), usedforsecurity=False).hexdigest()
-
+
@property
def fingerprint(self) -> Fingerprint:
"""