From a8b74325e0d25b3a619241a279a2cafff2c48dd3 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 1 Aug 2026 17:48:42 +0000 Subject: [PATCH] chore(typing): drop the ocr Coroutine annotation now that the base owns that convention litellm_internal_staging standardized on Coroutine[object, object, T] for the sync/async dual-mode returns, so ocr/main.py keeps the base's annotation instead of the Coroutine[None, None, T] this branch had needed for its own handler. --- litellm/ocr/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/ocr/main.py b/litellm/ocr/main.py index 68a723daa99..f53f32eecfa 100644 --- a/litellm/ocr/main.py +++ b/litellm/ocr/main.py @@ -575,7 +575,7 @@ def ocr( custom_llm_provider: str | None = None, extra_headers: dict[str, object] | None = None, **kwargs: object, -) -> OCRResponse | Coroutine[None, None, OCRResponse]: +) -> OCRResponse | Coroutine[object, object, OCRResponse]: """ Synchronous OCR function.