ocr: guard OCRResponse under TYPE_CHECKING so the annotation resolves

This commit is contained in:
Ishaan Jaffer 2026-06-22 18:49:03 -07:00
parent 3188f93be0
commit 88a9e6ed57
No known key found for this signature in database

View file

@ -6,7 +6,10 @@ then routes supported Mistral calls through the compiled ``litellm_python_bridge
extension, which performs the whole OCR call (URL, headers, HTTP, parse) in Rust.
"""
from typing import Any, Dict, Optional
from typing import TYPE_CHECKING, Any, Dict, Optional
if TYPE_CHECKING:
from litellm.llms.base_llm.ocr.transformation import OCRResponse
_RUST_OCR_ENABLED = False