mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
- Replace Dict, List, Set, Tuple with dict, list, set, tuple throughout codebase - Add missing type annotations to crew_events.py methods - Add proper type annotations to test_crew_cancellation.py - Use type: ignore[method-assign] comments for mock assignments - Maintain backward compatibility while modernizing type hints This resolves lint and type-checker failures in CI while preserving the cancellation functionality. Co-Authored-By: João <joao@crewai.com>
17 lines
357 B
Python
17 lines
357 B
Python
from typing import Any
|
|
|
|
|
|
class Storage:
|
|
"""Abstract base class defining the storage interface"""
|
|
|
|
def save(self, value: Any, metadata: dict[str, Any]) -> None:
|
|
pass
|
|
|
|
def search(
|
|
self, query: str, limit: int, score_threshold: float
|
|
) -> dict[str, Any] | list[Any]:
|
|
return {}
|
|
|
|
def reset(self) -> None:
|
|
pass
|