From c23e8fbb02589fde1822280e4e0d08379473a74a Mon Sep 17 00:00:00 2001 From: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com> Date: Wed, 26 Mar 2025 08:16:09 -0700 Subject: [PATCH] Refactor type hints and clean up imports in crew.py (#2480) - Removed unused import of BaseTool from langchain_core.tools. - Updated type hints in crew.py to streamline code and improve readability. - Cleaned up whitespace for better code formatting. Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com> --- src/crewai/crew.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: """