mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-23 07:08:14 +00:00
fix: handle optional crewai_files import in types.py
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING, Any, Literal
|
||||
from typing import Any, Literal
|
||||
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
try:
|
||||
from crewai_files import FileInput
|
||||
except ImportError:
|
||||
FileInput = Any # type: ignore[misc,assignment]
|
||||
|
||||
|
||||
class LLMMessage(TypedDict):
|
||||
|
||||
Reference in New Issue
Block a user