fix: handle optional crewai_files import in types.py

This commit is contained in:
Greyson LaLonde
2026-01-22 22:33:58 -05:00
parent 19d6a47d0c
commit 9a2b610b21

View File

@@ -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):