mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-02 15:32:30 +00:00
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>
This commit is contained in:
parent
9cdb176a8e
commit
00b8e1fa9b
@ -51,7 +51,7 @@ class DoclingJSONBackend(DeclarativeDocumentBackend):
|
|||||||
return e
|
return e
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def convert(self):
|
def convert(self) -> DoclingDocument:
|
||||||
if isinstance(self._doc_or_err, DoclingDocument):
|
if isinstance(self._doc_or_err, DoclingDocument):
|
||||||
return self._doc_or_err
|
return self._doc_or_err
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user