mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
Fix type check error: Remove duplicate @property decorator for fingerprint in Crew class (#2369)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Joe Moura <joao@crewai.com> Co-authored-by: João Moura <joaomdmoura@gmail.com>
This commit is contained in:
committed by
GitHub
parent
939afd5f82
commit
d0959573dc
@@ -500,19 +500,6 @@ class Crew(BaseModel):
|
|||||||
"""
|
"""
|
||||||
return self.security_config.fingerprint
|
return self.security_config.fingerprint
|
||||||
|
|
||||||
@property
|
|
||||||
def fingerprint(self) -> Fingerprint:
|
|
||||||
"""
|
|
||||||
Get the crew's fingerprint.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
Fingerprint: The crew's fingerprint
|
|
||||||
"""
|
|
||||||
# Ensure we always return a valid Fingerprint
|
|
||||||
if not self.security_config.fingerprint:
|
|
||||||
self.security_config.fingerprint = Fingerprint()
|
|
||||||
return self.security_config.fingerprint
|
|
||||||
|
|
||||||
def _setup_from_config(self):
|
def _setup_from_config(self):
|
||||||
assert self.config is not None, "Config should not be None."
|
assert self.config is not None, "Config should not be None."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user