From 00b8e1fa9b7e123d22b030e3121e4e6e25ed7e4c Mon Sep 17 00:00:00 2001 From: Panos Vagenas <35837085+vagenas@users.noreply.github.com> Date: Fri, 24 Jan 2025 17:26:51 +0100 Subject: [PATCH] Update docling/backend/json/docling_json_backend.py Co-authored-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com> --- docling/backend/json/docling_json_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docling/backend/json/docling_json_backend.py b/docling/backend/json/docling_json_backend.py index e950f4ce..73ac6972 100644 --- a/docling/backend/json/docling_json_backend.py +++ b/docling/backend/json/docling_json_backend.py @@ -51,7 +51,7 @@ def _get_doc_or_err(self) -> Union[DoclingDocument, Exception]: return e @override - def convert(self): + def convert(self) -> DoclingDocument: if isinstance(self._doc_or_err, DoclingDocument): return self._doc_or_err else: